-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
Currently websites using AOS are failing the best-practices section in the Lighthouse-Test, due to the issue "Does not use passive listeners to improve scrolling performance", like described in the docs.
This is:
- Feature request
Expected Behavior
All scroll-event-listeners are marked as passive listeners.
Possible Solution
Here
Lines 60 to 65 in 329fb34
| window.addEventListener( | |
| 'scroll', | |
| throttle(() => { | |
| handleScroll($aosElements, options.once); | |
| }, options.throttleDelay) | |
| ); |
window.addEventListener(
'scroll',
throttle(() => {
handleScroll($aosElements, options.once);
}, options.throttleDelay),
{ passive: true }
);I'm going to provide a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels