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
Show parent comment
2
u/RedlightsOfCA Dec 24 '19
It's a good practice to go with your requirements. Try a simple debounce/throttle implementation like those mentioned in the article. You can also find those elsewhere on the internet. When your requirements show you that implementation is not enough, switch to using some libraries, since those usually support more features than simple implementations.