Lazy Loading oEmbed Iframes
v1.0.1Weston Ruter · 2020年6月8日 上架
Add the loading=lazy attribute to iframes coming from oEmbeds in content
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,865
- 最近更新
- 2021年1月25日
需要 WordPress 2.9+已测试到 5.4.26PHP 5.6+
贡献者
This plugin adds the loading=lazy attribute to iframe elements coming from oEmbeds. In WordPress 5.5, loading=lazy is added to images per #44427, and in 5.7 it is being added to iframes as well per #50756.
This plugin will be obsolete by the time WordPress 5.7 is released. When that happens, this plugin will do nothing.