Throttling vs Debouncing in Javascriptby@serhiirubets
2,648 reads
2,648 reads

Throttling vs Debouncing in Javascript

by Serhii Rubets5mMay 19th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Serhii Rubets

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.

Learn More
LEARN MORE ABOUT @SERHIIRUBETS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Serhii Rubets HackerNoon profile picture
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.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite