I'm using Google Page Speed Insights to optimize my page speed. It tells me to not use passive listeners to improve scrolling performance. I know how to do it with vanilla javascript.
window.addEventListener(
'scroll',
() => {
handleScroll();
},
{ passive: true }
);
How to do this with JQuery?
