Answer the question
In order to leave comments, you need to log in
How to speed up the loading of the background video on the site?
The background video takes a long time to load. PageSpeed Insights shows speed 10 out of 100. I use YTPlayer jquery plugin. How can you optimize the moment?
https://codepen.io/malinosky/pen/deeKWK
Answer the question
In order to leave comments, you need to log in
Use Youtube Iframe API, or Youtube Video API. Thus, you will get full control over the video and its controls.
<iframe width="560" height="315" src="https://www.youtube.com/embed/moC98CP-NRA" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question