How to optimize multiple(5 pieces) insert a video from YouTube?

As it is now fashionable to optimize YouTube video?
There is a page, it ticatica 5 videos from YouTube that significantly affects the download. Have an idea to take preview of video + the title of the video on top nakladyvat the icon "play"(to disguise a plain box) in the div attributes to this unit prescribe something like:
1) data-youtubesrc="youtube.com/?v=youryoutubevideoid"
2)onClick="functionName();"


And already onclick to insert in this block the player VIDOS.

It's worth it? This is the most that can be done for optimization?
June 26th 19 at 14:28
1 answer
June 26th 19 at 14:30
Maybe you should use youtube javascript API.
https://developers.google.com/youtube/iframe_api_r...
Well, what you describe is also using this API is pretty easy

Find more questions by tags Client side optimizationFrontendJavaScript