Passive listeners for better scrolling performance
darkkatarsis opened this issue · comments
darkkatarsis commented
Summary
Hi, Is it possible for a script that listens for a scroll event to run in passive mode? Tests in page speed each time suggest that the current solution is not the best and blocks rendering of the page.
Basic example
document.addEventListener('touchstart', onTouchStart, {passive: true});
https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=lr
Motivation
- Better performance
- Better indexing of pages by google
Sachin Neravath commented
Closing as duplicate - #1243
Thank you for reporting this.