Suddenly today out of nowhere I started getting this one on every page on our website
Added non-passive event listener to a scroll-blocking 'touchstart' event.
Consider marking event handler as 'passive' to make the page more responsive
And its not just once or twice.. its like thousands of them....
They are running amok.
The only way to stop the flood of violations is to comment out this line
I read the other posts on what this violation means, but I really cannot see that I did anything different between two hours ago and now (I did a full rollback just to see if it helped)
Its almost like someone put a bug into jquery.min.js but I seriously doubt that cause then everyone would get it.
Any ideas? I tried debugging everything I could, and I still have no idea what causes this?!?
UPDATE
I replaced all text width This removed 99% of all the violations.
解决方案
Ok digging this up a little more, this is not a new behavior, it has been reported a while ago and jQuery still hasn't fixed it.
The problem lies in the fact that for an handler to be passive it has to be certain of never calling preventDefault() but jQuery doesn't know in advance...
The only tip I could give you is change your console logging level and remove "Verbose". Follow up on this issue for ideas on solving this.