I'm embedding a youtube iframe on my website that is throwing the following warnings in my console:
[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 https://www.chromestatus.com/feature/5745543795965952 base.js:4560
[Violation] 'setTimeout' handler took 115ms www-embed-player.js:583
I'm sure it's this component, as when I comment it out, the warnings stop. I would like to get rid of these warnings. How to do this?
<iframe width="100%" height="300px" src="https://www.youtube.com/embed/wHcyxs6pGIk" frameborder="0" allow="accelerometer; autoplay; gyroscope; picture-in-picture" allowfullscreen></iframe>
I have been having the same error. This is the only post I've seen addressing the issue. In the link the warning gives it directs you to check out : Github EventListenerOptions/explainer.md
In the document it says the following:
It seems this error is inevitable due to YouTube's volume slider.