lazy load iframe (delay src http call) with jquery

后端 未结 6 2337
有刺的猬
有刺的猬 2020-12-05 05:13

I am looking for something similar to jQuery image lazy load plugin, but for iframes.

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 05:49

    If you want to do this in WordPress

    Here is an 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/

提交回复
热议问题