Lazy-loads media using the native browser feature. Learn more about the new
loading attribute or view the WordPress core ticket where inclusion of a similar implementation in WordPress core itself is being discussed.
loading attribute is supported by the browser, a
noscript variant of the respective element will be added that also includes the
loading attribute without any further changes.
This plugin largely does away with this pattern. It relies on the new
Last but not least, a neat thing to keep in mind is that this plugin will essentially improve itself over time, as more browsers roll out support for the
The easiest way to get the plugin is to install it from your WordPress admin dashboard, or manually download it from wordpress.org. Alternatively, you can also clone or download this repository to get the development version, but you will need to run a few commands to process assets and set up the autoloader:
npm run build
- WordPress >= 4.7
- PHP >= 7.0
Any kind of contributions to Native Lazyload are welcome. Please read the contributing guidelines to get started.