logoalt Hacker News

not_kurt_godelyesterday at 10:09 PM1 replyview on HN

https://developer.mozilla.org/en-US/docs/Glossary/Debounce


Replies

tadfisheryesterday at 10:25 PM

Okay, how long is the debounce window? Where in the input pipeline do you debounce (obviously not immediately on keystrokes)? Will debounce work for long-running requests, which are event-driven and not time-driven?

I have seen, far too many times, naive approaches like wrapping all click handlers in a "debounce" function cause additional issues and not actually solve the underlying problem.

show 1 reply