[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
See original GitHub issueBug, feature request, or proposal:
In chrome 58, warnings started appearing on console:
zone.min.js:1 [Violation] 'readystatechange' handler took 190ms
zone.min.js:1 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
zone.min.js:1 [Violation] 'load' handler took 517ms
What is the expected behavior?
Don’t get this warning on console:
What are the steps to reproduce?
Just running the template plunker you get this console warning. Console must be in the verbose level
Plunker: https://goo.gl/DlHd6U
Which versions of Angular, Material, OS, browsers are affected?
Chrome 58.0.3029.81 Mac OSX 10.12.4 (Sierra)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:55
- Comments:33 (6 by maintainers)
Top Results From Across the Web
Consider marking event handler as 'passive' to make the page ...
Handling of 'touchstart' input event was delayed for X ms due to main thread being busy. Consider marking event handler as 'passive' to...
Read more >Passive event listeners
Consider marking event handler as 'passive' to make the page more responsive. you should use the passive option in .addEventListener() ...
Read more >Passive event warnings [63211698] - Visible to Public
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more ...
Read more >Violation: added non-passive event listener to a scroll ...
Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more ...
Read more >Bing maps violation in Chrome (non-passive event listener to ...
Consider marking event handler as 'passive' to make the page more responsive. [Violation] Added non-passive event listener to a scroll-blocking ...
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
Using https://github.com/zzarcon/default-passive-events will remove some of those violation warnings, but there is still some left.
I can not understand why this is closed, the problem always exist and only this: https://github.com/zzarcon/default-passive-events solved my problem, the above problem thx to @tarlepp