Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
Automatically adding passive listeners to JS events

Google Pagespeed is annoying me and docking me points for 'Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance.'

OK, simple enough, add {passive:true} to every time you have an event on scroll! But I'm using libraries and WP Plugins also use their own JS so I wont be able to change those.

So is there a way to add, with JS that every time a scroll event is called, that it will always be passive?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!