From Dev.to
Debounce vs throttle: two tiny helpers, one mental model
Search-as-you-type can fire an input handler 20 times in 800 ms. A scroll listener can fire once per frame. Neither problem is fixed by making the handler faster; it is fixed by deciding how often the...
