Search Control Room
Type quickly and watch how Debounce waits until the user stops typing before executing the expensive operation.
Debounce
Debounce delays execution until events stop happening for a specific amount of time.
"Keep waiting... now execute. "
Scroll Reactor
Scroll the page and watch Throttle limit how frequently your handler executes.
Throttle
Throttle allows a function to execute at most once within a defined time interval.
"Events can keep coming. Execute at controlled intervals. "
Scroll events can fire many times while the user is moving through the page.
The handler is allowed to execute once during each 100ms interval.
The browser can receive many events without forcing your expensive logic to run for every single event.
The Core Difference
Debounce
Wait → ExecuteBest when you only care about the final event after a burst of activity.
Throttle
Control → ExecuteBest when events continuously happen but you still need controlled periodic execution.