> For the complete documentation index, see [llms.txt](https://mohsin-ejaz.gitbook.io/javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mohsin-ejaz.gitbook.io/javascript/debounce.md).

# Debounce

🚀 Debouncing is a strategy that lets us improve performance by waiting until a certain amount of time has passed before triggering an event. When the user stops triggering the event, our code will run.\
\
🚀 In some cases, this isn't necessary. But, if any network requests are involved, or if the DOM changes (eg. re-rendering a component), this technique can drastically improve the smoothness of your application.\
.\
.\
.\
[#hoisting](https://www.linkedin.com/feed/hashtag/?keywords=hoisting\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936) [#javascript](https://www.linkedin.com/feed/hashtag/?keywords=javascript\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936) [#interview](https://www.linkedin.com/feed/hashtag/?keywords=interview\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936) [#developer](https://www.linkedin.com/feed/hashtag/?keywords=developer\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936) [#nodejs](https://www.linkedin.com/feed/hashtag/?keywords=nodejs\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936) [#interviewpreparation](https://www.linkedin.com/feed/hashtag/?keywords=interviewpreparation\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6920358413151399936)\
Source:\
<https://lnkd.in/d5kH9ZEH>

![](https://media-exp1.licdn.com/dms/image/C4D22AQFrl0gjG42C0g/feedshare-shrink_800/0/1649942018219?e=2147483647\&v=beta\&t=mNShYs7W0OQNo_qZCvd3_S-sl_P9W4ANv5gFMvQMGKU)
