AtulHost
  • Business
    • Career and Education
    • Finance and Investments
    • Marketing Strategies
  • Productivity
  • Technology
    • Consumer Electronics
    • Solar Energy
  • Tutorials

How to disable lazy load in WordPress?

By AtulHost in Tutorials ⋅ December 23rd, 2020

WordPress in its 5.5 version introduced lazy loading of images natively without the need for an external plugin. Since modern browsers already allow this lazy loading feature, WordPress added support for that loading tag.

To achieve this lazy loading of images all you need to do is insert the loading=”lazy” tag inside the image tag as mentioned below:

<img src="https://example.com/image.jpg" loading="lazy" />

This feature is useful to many websites, but some sites do not want to use this feature. Sites like images and wallpapers site often avoid lazy load feature.

To disable lazy loading just add the below code in theme’s function.php file.

Note: Always make a backup your site if you don’t know what you are doing!

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

Once the above code is added, just clear the cache and visit the site’s front end. Now the tag of the lazy load is gone and none of the images is lazy loading.

Tagged with Image, images, Lazy Load, Lazy Loading, WordPress.
Facebook Tweet LinkedIn

Published by AtulHost

Atul Kumar Pandey is a creative blogger who loves experiments with the latest tech trends like automation, artificial intelligence, data science, cloud and edge computing, hardware as well as networking, and the internet of things.

Users also read these

  • 150+ Christmas Images, Photos, and Pics
  • How to Build a Website and Market it?
  • Indian flag images, wallpapers, photos, and pictures free download
  • Happy New Year 2021 images
  • How to Choose Budget-Friendly Hosting Service for WordPress?
  • How to Find Free Images for Your Blog Posts?
  • 10+ Best Rick and Morty Wallpapers HD
  • How to remove website (URL) field from WordPress comments?
  • Dassault Rafale Images

Make a comment Cancel reply

Required fields are asterisked and your email address will not be shared.

Subscribe
10x your productivity
Increase your conversion rates
  • About Us
  • Affiliate Disclosure
  • Contact
  • Privacy Policy
  • Terms and Conditions
  • Write for Us
This website and its content are copyrighted © 2014-2021 by atulhost.com and individual contributors.