Is there a way to load embedded YouTube videos faster on my website?

前端 未结 5 1753
南旧
南旧 2020-12-29 00:19

I\'m writing a blog post that uses multiple videos from YouTube and Yahoo Video, but I\'m not happy with how long it takes the page to render. Apart from using an ajax-y met

5条回答
  •  情话喂你
    2020-12-29 00:22

    The Google Plus solution is the only way to improve performance: load an image stub, then load the full player when the user clicks.

    Building on the solution from @boscharun here is the solution I use:

                  
    
    
    
                          
    

    You can see it in action live at: https://www.acls.net/videos.htm

    Features include:

    • Degrades to IMG if necessary
    • Semantic
    • Responsive
    • Uses jQuery

提交回复
热议问题