#lazyweb What's the IRL perf difference between `document.addEventListener('scroll', myfunc, { passive: true }) ` and a debounced scroll? Do you still need to debounce scrolls?
I made a codepen based on an old pen by @chriscoyier and they look identical. https://cdpn.io/davatron5000/debug/e1264bdce6051289de84221003f34053 …
-
-
What’s the 2018 answer? Does passive do anything for onscroll?
-
2018 answer is that we moved to passive-by-default.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.