开发者 |
wordpressdotorg
azaozz flixos90 |
---|---|
更新时间 | 2020年3月19日 09:25 |
PHP版本: | 5.6.20 及以上 |
WordPress版本: | 5.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
loading
HTML attribute to images and other elements that support it.
More information about the loading
attribute:
Description: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading.
HTML Specification: https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading.
Currently the loading
attribute is supported in the following browsers: https://caniuse.com/#feat=loading-lazy-attr.
To test, install and enable the plugin. It will automatically add loading="lazy"
attributes to all images in all new and existing posts, pages, and text widgets on the front-end.
Then use one of the browsers that support it (Chrome, Opera, Firefox, Edge, Android, etc.) and visit the site. Best would be to test over a slower connection, with a phone, etc. and test web pages that have a lot of images, like gallery posts.
Things to look for