One month after support for native lazy-loading was added to Chrome, Google has released an official Native Lazyload plugin for WordPress. The plugin inserts the
loading attribute into
img elements and specifies a value of
lazy. When Chrome loads a page that uses the
loading attribute, it will natively lazy-load the images.
<img src="https://domain.com/image.png” loading="lazy" alt="Image description">
When I first wrote about Chrome’s support for lazy-loading, I provided the following caveat to webmasters.
noscriptvariant of the respective element will be added that also includes the loading attribute without any further changes.
The plugin also supports natively lazy-loading iframes. Now WordPress sites can take advantage of Chrome’s new native lazy-loading without concerns about unsupported browsers.