Plugin Sale! Save 15% on pro plugins with discount code: FALL2020
Web Dev + WordPress + Security

WordPress Plugin: Disable Lazy Loading

WordPress Plugin: Disable Lazy LoadingSloth by photosforhobby WordPress 5.5 brings some cool new features, including built-in support for lazy-loading images. So whether you want it or not, WordPress will add a new “loading” attribute to all of your images. That way supportive browsers will be able to load your images as the user scrolls the page, instead of trying to load everything at once. It’s a popular front-end technique that may help to boost performance a little bit.

Like anything else, there are pros and cons to lazy loading images. You can read all about it at WordPress.org. Currently browser support is spotty at best.

Don’t want all of your images to get lazy-loaded? Install the free plugin and done.

Disable Lazy Loading

I think a lot of folks are thrilled to see lazy loading put into the WordPress core. But like with many of WordPress’ new features, not everyone wants or needs their images to load lazily amongst supportive browsers. Some prefer consistency and will wait until browser support has improved. Others already have implemented their own lazy-load solution, like via a plugin for example. Even WordPress core developers know this, as they had the foresight to include an easy way to disable the new lazy-loading functionality in WordPress 5.5 and beyond.

Does one thing: disables WP Lazy Load feature.

And that’s where this plugin comes in. It’s a super simple plugin that makes use of the official WordPress technique for disabling the WP Lazy Loading feature. Just install the plugin and it’s done; WordPress will not insert any loading="lazy" attributes into your site’s images.

WordPress Plugin: Disable Lazy LoadingScreenshot showing the new loading attribute, which WordPress now inserts into all of your images.

Plugin Features

I try to keep all of my WordPress plugins as lightweight and fast as possible. The Disable Lazy Loading plugin consists of one line of code, so it is lightweight and fast. Other features include:

  • Clean, secure code
  • Simple to use – activate and done
  • No settings to worry about.
  • Written according to the WP API
  • Simple, lightweight, and flexible
  • Localized and translation ready
  • Cleans up after itself when uninstalled
  • Easy peasy.

For more details about how it works, visit the plugin docs at WordPress.org.

Installation & Usage

First install and activate the plugin:

  1. Upload the plugin to your blog and activate
  2. Done!

There are no more steps :) This plugin works silently behind the scenes, with no need for any settings page. So it is super simple and completely effective at disabling WP Lazy Loading.

WordPress Plugin: Disable Lazy LoadingAnother screenshot showing the new loading attribute, added by WordPress to all of your images.

Why is this useful?

Because there are plugins that already implement lazy loading. So when upgrading to WP v5.5, there may be conflicting or redundant functionality. That’s not ideal. So with WordPress 5.5 and beyond, you can either remove your existing lazy-load solution, or more simply disable the WP-generated one. Or maybe you just don’t want lazy loading on some particular site. Whatever the reason, this plugin will do the job with a click.

Download

Disable Lazy Loading is open source and 100% free for everyone. Learn more and download at the WP Plugin Directory.

Jeff Starr
About the Author
Jeff Starr = Fullstack Developer. Book Author. Teacher. Human Being.
GA Pro: Add Google Analytics to WordPress like a pro.

2 responses to “WordPress Plugin: Disable Lazy Loading”

  1. Udegbunam Chukwudi 2020/08/05 12:05 amReply

    So this new feature would definitely conflict with Jetpack’s Lazy Images module?

Leave a reply

Name and email required. Email kept private. Basic markup allowed. Please wrap any small/single-line code snippets with <code> tags. Wrap any long/multi-line snippets with <pre><code> tags. For more info, check out the Comment Policy and Privacy Policy.

Subscribe to comments on this post

Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
Banhammer: Protect your WordPress site against threats.
Thoughts
Air finally clearing here in WA. Feeling grateful to breathe again. #oxygenmatters
Past week here in WA state has been hellish. So much smoke, like living in a chimney.
Now in September, I’m where I wanted to be in March.
Spent some time updating my article on unsafe characters, once again current with latest IETF specification.
Just realized that “Neo” is an anagram for “One”. As in, “he is the One” (The Matrix).
To get VLC app to load all songs (including subfolders), go to Preferences ▸ Show All ▸ Playlist ▸ Subdirectory behavior ▸ Expand.
Switching from PhotoShop to Affinity Photo is one of the most liberating work-related things I've done in 20 years.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.