Skip to content

Override of `addEventListener` to apply passive event listeners

Notifications You must be signed in to change notification settings

pagespeed-pro/passive-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Passive event listeners fix

An override of addEventListener for events wheel, mousewheel, touchstart, touchmove that enables to pass the Google Lighthouse penalty Does not use passive listeners to improve scrolling performance.

Include passive-fix.js before jQuery or code that uses addEventListener.

Web.Dev Measure issue

More info:

Passive event handlers are planned for jQuery 4:

jquery/jquery#2871

About

Override of `addEventListener` to apply passive event listeners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published