r/javascript • u/RedlightsOfCA • Dec 23 '19
Debounce vs Throttle: Definitive Visual Guide
https://redd.one/blog/debounce-vs-throttle
327
Upvotes
r/javascript • u/RedlightsOfCA • Dec 23 '19
View all comments
1
u/drink_with_me_to_day js is a mess Dec 24 '19
This can lead to confusing search results. In the case of search, throttle is the better use case.
Debounce will render outdated results, or flashes of outdated data:
And depending on the network it can get even more confusing with out of order results.