Better page load performance when loading multiple embedded Youtube videos?

前端 未结 4 1737
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 06:10

I have a page which displays multiple (usually 10) embedded videos. The videos use the new IFRAME embed code of youtube and apparently for every IFRAME there is a separate reque

4条回答
  •  眼角桃花
    2021-02-04 06:37

    Automatic, request reducing, solution

    In WordPress plugin form

    Here is a WordPress plugin you can download and manually install via the WordPress plugin repository. I created this today just to handle this situation. No changes to content are needed, this works automatically once activated on any and all iframes.

    https://wordpress.org/plugins/lowermedia-iframes-on-demand/

提交回复
热议问题