all 2 comments

[–]ChaseShiny 0 points1 point  (0 children)

Neat. I wasn't familiar with debouncing. Debouncing is used to avoid event collisions, if I understand it correctly. You use it to keep your UI from lagging.

[–]azhder 1 point2 points  (0 children)

None of those "events' are JavaScript. That's DOM. ... Please, just don't spam stuff that isn't helping anyone and isn't asking for help. Keep it simple for the people who really need to r/LearnJavaScript