Paul-Browne / lazyestload.js

load images only when they are in (and remain in) the viewport
https://rawgit.com/Paul-Browne/lazyestload.js/master/dist/lazyestload.html
1.42k stars 85 forks source link

Passive event listeners for onScroll event #8

Open ichyr-codete opened 6 years ago

ichyr-codete commented 6 years ago

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/

exside commented 5 years ago

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