WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Felix Arntz v1.0.2

Native Lazyload

Lazy-loads media using the native browser feature.

Native Lazyload

The facts

Rating
3★ from 31
Active installs
5k+
Price
Free
Last updated
6 Dec 2019
Added
Sep 2019
Requires WP
4.7
Tested up to
WP 5.3.23
Requires PHP
7.0
Downloads
91,129

Our analysis

AI-assisted

Native Lazyload is a WordPress plugin that implements lazy-loading for media using the native browser loading attribute. It enhances website performance by reducing the need for custom JavaScript, relying instead on browser capabilities to load images and iframes only when they are in view.

This plugin is suitable for users looking to improve their site's loading speed without adding significant overhead. It automatically activates upon installation, making it easy to use for those who want to optimise media loading on their WordPress sites.

Best for: This plugin suits WordPress users aiming to enhance their site's loading speed with minimal effort.

What it does well

  • Uses native browser loading attribute for lazy-loading
  • Reduces reliance on custom JavaScript for improved performance
  • Automatically activates for images and iframes in post content
  • Improves over time as more browsers support the loading attribute

Where it falls short

  • Limited information on compatibility with all browsers
  • Data on performance impact is not provided

Verdict

Native Lazyload offers a straightforward solution for lazy-loading media, leveraging native browser features. It may be beneficial for those focused on performance optimisation.

From the developer

Felix Arntz's own description of Native Lazyload, lightly tidied.

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.

If the loading attribute is not supported by the browser, the plugin falls back to a JavaScript solution based on IntersectionObserver. For the case that JavaScript is disabled, but the 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.

“Native” means “Fast”

If you have found your way over here, you are probably aware of how crucial performance is for a website’s user experience and success. You might also know that lazy-loading is a key feature to improve said performance. However, the solutions for lazy-loading so far still added a bit of overhead themselves, since they relied on loading, parsing and running custom JavaScript logic, that may be more or less heavy on performance.

This plugin largely does away with this pattern. It relies on the new loading attribute, which makes lazy-loading a native browser functionality. The attribute is already supported by Chrome, and will be rolled out to other browsers over time. The solution being “native” means that it does not rely on custom JavaScript logic, and thus is more lightweight. And “more lightweight” means “faster”.

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 loading attribute.

Usage

Just activate the plugin, and all your images and iframes in post content will be loaded lazily.

Credit

This plugin is partly based on logic from WP Rig as well as recommendations from web.dev and developers.google.com.

Read the full description on the official page →

Tagged as