alvarotrigo / pagePiling.js

pagePiling plugin by Alvaro Trigo. Create a scrolling pile of sections. http://alvarotrigo.com/pagePiling/
4.1k stars 654 forks source link

Page Speed Issue GTMatrix #224

Closed codewithsourabh closed 3 years ago

codewithsourabh commented 3 years ago

Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance.

use passive listeners to improve scrolling performance

How to fix this audit? To fix this audit, add a passive: true flag to every event listener flagged by GTmetrix. For example,

document.addEventListener('touchstart', onTouchStart, {passive: true});

alvarotrigo commented 3 years ago

How to fix this audit?

There's actually no need for a fix. This is just an advise, not an error "Consider...."

Read more about it here: https://github.com/alvarotrigo/fullPage.js/issues/4036#issuecomment-692349929