Debouncing is a technique of performance optimization which relies on concept of calling a function after user stop his/her activity for certain amount of time.

Suppose we have a web application which has a button to fetch records from database. It is very common that user click the button multiple times by mistake or for fun. Are you going to make API call on every click? Definitely not because database call is expensive operation. This is where debouncing comes into picture. Suppose our HTML file is something like this.

Now if we simply call backend we will send n number…

Santosh yadav

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store