React v17 lighthouse passive events
See original GitHub issueRunning Lighthouse on pages with Button component get “Does not use passive listeners to improve scrolling performance”
“Consider marking your touch and wheel event listeners as passive
to improve your page’s scroll performance”
https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=devtools
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Expected Behavior 🤔
Steps to Reproduce 🕹
Steps:
Context 🔦
Your Environment 🌎
Tech | Version |
---|---|
Material-UI | v5.?.? |
React | |
Browser | |
TypeScript | |
etc. |
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
React v17 lighthouse passive events #22252 - mui/material-ui
Running Lighthouse on pages with Button component get "Does not use passive listeners to improve scrolling performance"
Read more >React v17.0 Release Candidate: No New Features
In React 17, React will no longer attach event handlers at the document level. Instead, it will attach them to the root DOM...
Read more >Replace passive addEventListener to onTouchStart method
I'm talking about Passive Event Listeners and browser behavior. Is it only about using preventDefault() or not ? Do I understand it correctly...
Read more >react-swipeable - Formidable Labs
A React swipe event handler hook. ... Edit react-swipeable image carousel ... lighthouse performance deducting points for not having passive option set.
Read more >Under the hood of event listeners in React - DEV Community
For each Fiber node, React watch if the component is a HostComponent (ie a htnml element) and if there is a prop corresponding...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eps1lon done, turned into https://github.com/facebook/react/issues/19651
Solved in https://github.com/facebook/react/issues/19651