David Corbacho


Debounce and Throttle: a visual explanation

Debounce and throttle are two concepts that we can use in JavaScript to increase the control of our function executions, specially useful in event handlers.

Both techniques answer the same question "How often a certain function can be called over time?" in different ways.
Let's explore them.