How To Disable Lazy Loading in WordPress 5.5+

A top view of a workspace with a laptop, black notebook, pen, potted plant, and a hand holding coffee. The laptop screen displays THIS IS WHERE YOU ARE, hinting at Lazy Loading for efficient digital workflow.

In this tutorial, we are going to show you how to disable lazy loading in WordPress 5.5.

WordPress 5.5 was released on August 11th, 2020 and it included some pretty awesome new features. One of those features was images wait to load until they’re just about to scroll into view. The technical term is ‘lazy loading’.

Now, why might you want to disable this feature? There are a handful of WordPress plugins out there that already implement this feature that you already use and might cause a conflict. One of the more popular plugins is Smush.

Disable default lazy loading in WordPress

In order to disable lazy loading in WordPress by default, you need to add the following code into your themes functions.php file.

				
					// Disable WordPress Lazy Load
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
				
			

In Summary

Obviously, there are a lot of benefits to the new lazy load feature, however, if you ever need to disable it now you have the knowledge and know-how to do so.

Table of Contents

Looking for more?

Here are some other articles that we think you will be interested in!

Screenshot of the Elementor page builder interface, with a drag-and-drop sidebar on the left and a web page preview on the right. A logo sits centerstage, set against a pink and purple gradient—perfect for adding PHP Code to Elementor projects.

How To Add PHP Code to Elementor

In this tutorial, we are going to show you how to easily add PHP Code to any Elementor page by creating a simple shortcode and adding it to your functions.php

Screenshot showing a webpage with food listings and a pop-up form titled Listing Settings, where a restaurant listing is being edited. Three food-related cards are visible, displayed in a layout created with WPBakery Visual Composer.

Create A WPBakery Visual Composer Add-On

Learn how easy it is to create a WPBakery Visual Composer Add-on element that you can use for almost any application! This can come in handy when you’re building a website for a client that isn’t so tech savy, but would like to be able to make some changes on their own in the future. Click the link to get started: