debouncing
-
Frontend
Debouncing and Throttling in JavaScript: A Practical Guide With React Examples
Debouncing waits until events stop for a set time and then runs the function once, which suits search boxes and autosave. Throttling runs the function at most once per time window, which suits scroll and resize handlers. In React, debounce the value with a useDebounce hook and cancel outdated requests with AbortController.

