Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another thing to watch for is whether you actually need debouncing.

For example, debouncing is often recommended for handlers of the resize event, but, in most cases, it is not needed for handlers of observations coming from ResizeObserver.

I think this is the case for other modern APIs as well. I know that, for example, you don’t need debouncing for the relatively new scrollend event (it does the debouncing on its own).



Sad that the `scrollend` event isn't supported by Safari and doesn't look to be a part of their release this fall either.


Yep. Apple is a weird organization. scrollend is in Chrome since May 2023 and in Firefox since January 2023.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: