Throttling vs Debouncing in Javascriptby@serhiirubets
2,632 reads

Throttling vs Debouncing in Javascript

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Throttling and debouncing are good techniques to improve performance on your website. Each technique could help with that problems and each of them works in a little bit different way and uses for different cases. Let’s introduce, the throttling technique. In general, we want to have just 1 HTTP call, when the word will be fully typed. In my case, this was 55 times, but in general, it's a not perfect measure technique. For example, call some function no more than 1 time per millisecond, like call function once per 100 milliseconds or once every 100 milliseconds.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Throttling vs Debouncing in Javascript
Serhii Rubets HackerNoon profile picture

@serhiirubets

Serhii Rubets

I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.


Receive Stories from @serhiirubets

react to story with heart
Serhii Rubets HackerNoon profile picture
by Serhii Rubets @serhiirubets.I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.
Read my stories

RELATED STORIES

L O A D I N G
. . . comments & more!