lazyestload.js icon indicating copy to clipboard operation
lazyestload.js copied to clipboard

Passive event listeners for onScroll event

Open ichyr-codete opened this issue 7 years ago • 1 comments

Have you considered this approach - https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners ?

Description here: https://alligator.io/js/speed-up-scroll-events/

ichyr-codete avatar Sep 03 '18 06:09 ichyr-codete

@ichyr-codete isn't the scroll event passive by default anyways (also stated in the article you linked)?

exside avatar Sep 28 '18 16:09 exside