Frontend & browser·JavaScript in the browser
you let the scroll handler run at most once every hundred milliseconds no matter how fast the events arrive.
Throttle
Also calledrate limiting a handler
Capping how often a function may run, so a continuous stream of events produces calls at a steady rate rather than one at the end. It is right when intermediate values matter: scroll position, drag coordinates, progress reporting. The trade against debouncing is exactly that — throttling gives you regular but partial updates, debouncing gives you one complete one, late.