Z
Z
z_u_l2018-05-12 00:54:28
JavaScript
z_u_l, 2018-05-12 00:54:28

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

1 answer(s)
P
profesor08, 2018-05-12
@profesor08

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 question

Ask a Question

731 491 924 answers to any question