Open ichyr-codete opened 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/
@ichyr-codete isn't the scroll event passive by default anyways (also stated in the article you linked)?
scroll
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/