Eliminating Event Storms With Debouncing in JavaScriptby@marat
351 reads

Eliminating Event Storms With Debouncing in JavaScript

January 12th 2023
4 min
by @marat 351 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Debounce is a higher-order function that takes 2 arguments: a main function and a timer. The purpose of the debouncing is to reduce the load on the browser by reducing the number of calls. For instance, if you set a debounce with a time of 100 ms to the `onscroll` event, then the function will be executed 100 ms after the scroll stops.
featured image - Eliminating Event Storms With Debouncing in JavaScript
Marat HackerNoon profile picture

@marat

Marat

About @marat
LEARN MORE ABOUT @MARAT'S EXPERTISE AND PLACE ON THE INTERNET.

Credibility

react to story with heart
Marat HackerNoon profile picture
by Marat @marat.Hi guys, I'm Marat, a software developer with expertise in JavaScript, TypeScript and React
Read my stories

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa