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

前端 未结 5 1755
南旧
南旧 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:38

    You can follow the instructions from: https://varvy.com/pagespeed/defer-videos.html

    just instead of using the code like this :

    
    

    I would change by :

    
    

    Because, the src="" could be interpreted as src="/" on some browsers, which will load a copy of your site into the iframe...

提交回复
热议问题