manifest / performance / jdm-native-lazy-loading
JDM Native Lazy Loading
WordPress plugin automatically adds the loading="lazy" attribute to IMG tags within your content to support native image lazy loading in browsers that support it.
by JDM Digital · github.com/jdmdigital/jdm-native-lazy-loading · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jdmdigital/jdm-native-lazy-loading/archive/refs/heads/master.zipFrom the readme
JDM Native Lazy Loading
WordPress plugin automatically adds the loading="lazy" attribute to IMG tags within your content to support native image lazy loading, coming in Chrome 75.
Description
This plugin adds the loading="lazy" attribute to IMG tags found when filtering thecontent() to support native image lazy loading (coming in Chrome 75).
For more information about native lazy loading images, check out this article: https://addyosmani.com/blog/lazy-loading/ and for a little more depth into what we're doing here, check out our explainer post at: https://jdmdig.it/30nXp7h
Historically, to limit the impact offscreen images have on page load times, developers have needed to use a JavaScript library (like LazySizes) in order to defer fetching these images until a user scrolls near them. What if the browser could avoid loading these offscreen images for you?
The loading attribute allows a browser to defer loading offscreen images and iframes until users scroll near them. It comes in three flavors which you can select (the first one and the Nth ones) to all images sent through thecontent().
Just install, activate, check the settings page, and marvel at its simplicity.
Ther
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.