Debounce vs Throttle
Debounce
Batching many requests and consolidating them into a single call.
- Even if the event is fired multiple times, only one will register (at the
start or end of a series of calls
)
Throttle
Delaying the execution of a function to a set interval
to reduce the number of times event is fired off.