The new version of WordPress 5.5 includes the Lazy Load feature on images. This feature is very useful because it allows to load images as the user browses the page, hence the term “Lazy Load” or “Lazy Load”. We will see in this tutorial how to disable the native Lazy Load in WordPress 5.5.
Why disable the Lazy Load on WordPress 5.5?
There may be several reasons why you may want to disable the Lazy Load :
- The theme used is not compatible (images are no longer displayed after the update)
- You already use a plugin that handles the Lazy Load. This may conflict with the native functionality of WordPress.
How to disable Lazy Loading of images on WordPress 5.5?
To do this, nothing simpler, just edit your functions.php file which is at the root of your theme and add the following code :
// disable Lazy Loading of images on WordPress 5.5 add_filter( 'wp_lazy_loading_enabled', '__return_false' ) ;
I advise you to disable the Lazy Load only if you have another plugin that takes care of it. The Lazy Load feature is very important for the performance of your site and for your SEO positioning.
Une question ?
Nos experts se tiennent à votre disposition pour parler de votre projet.