Javascript searching. hit API when the user pause not on every keystroke(Debouncing)

Shivam Gupta
1 min readJul 4, 2019

--

Here I am going to discuss search technique while user search in the search box so every time hit API and get a result from the server.

But this process is heavy because on every keypress network call made.

index.html

app.js

Running Example:

Type fastly in the search box so no console will appear. When stop typing then console will apear

Give a clap if like my post. Thanks

--

--

Shivam Gupta
Shivam Gupta

Written by Shivam Gupta

Full Stack Engineer (Web/App) working on different JS Technologies & frameworks— Angular, Node, Typescript, Ionic, Firebase, AWS, ElK...Love to write cool stuff

No responses yet