S
S
Sergey Pribylskiy2014-01-10 23:02:35
YouTube
Sergey Pribylskiy, 2014-01-10 23:02:35

What are the ways to optimize page loading so that players are loaded only when the player is shown?

Good day!
There is a small block on the page, when clicked, a div opens on top of the entire content of the video slider.
The main page where such a slider is used takes a long time to load. In the Network FireBug panel, you can see that the site loads in 100ms, but the loading of the players themselves, the preview images of the video.
What are the ways to optimize page loading so that players are loaded only when the player is shown?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tatatelos, 2014-01-11
@Tatatelos

As I understand it, now you have the player code in a div and you only show it on click? Make the div empty and write player code to it only on click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question