leonardomso / 33-js-concepts

📜 33 JavaScript concepts every developer should know.
MIT License
62.75k stars 8.76k forks source link

Add link to debouncing article #374

Closed HollosJ closed 9 months ago

HollosJ commented 9 months ago

This is a really useful concept to know and something I've used many times in projects. Debouncing is a way to delay a function, this is useful for cases where you don't want a function to run every single time a user does something, as a way to reduce browser and even server load. For example, a user might be using a search bar - instead of running the function every time a user presses a key, we might only want the function to run after a few hundred milliseconds AFTER we stop typing.