plugin-icon

Native Lazyload + Polyfill

作者:Nico·
Adds native lazyloading to all images and embeds (Chrome) and adds a polyfill to make it work in all browsers.
版本
1.1.0
活跃安装
20
最后更新
Oct 11, 2019
Native Lazyload + Polyfill

Minimalistic lazyloading, loads images as they come into view. Adds native lazyloading to all images and embeds (Chrome) and adds a polyfill (1.07 KiB gzipped) to make it work in all browsers.

How it works technically (if you care)

  • Adds loading="lazy" to all <img> and <iframe> inside the_content and other areas.
  • Also wraps <img>, <iframe> and the content of <pictures> in <noscript>.
  • Adds the loading-attribute-polyfill to do its magic in JavaScript.

Feedback/Help is very welcome.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 5.2.23
这个插件是可用的下载,适用于您的站点。