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
Facebook Tweet LinkedIn

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.

Content is tagged with image, images, Lazy Load, Lazy Loading, wordpress.
Facebook Tweet LinkedIn

You’ll also like:

  • Indian flag images, wallpapers, photos, and pictures free download
  • Dassault Rafale Images
  • How to choose budget-friendly hosting service for WordPress?
  • How to Find Free Images for Your Blog Posts?
  • How to build a website and market it?
  • Drupal vs WordPress: Comparison of two outstanding CMS
  • Evergreen Three Best Blogging Platforms: Blogger Tumblr WordPress
  • Happy New Year 2021 images
  • How blog post with images can boost readers interest?
  • How to remove website (URL) field from WordPress comments?

Published by AtulHost

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

Make a comment Cancel reply

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

Subscribe

Recent Posts

  • Transitioning your startup out of the beginning stages
  • HR trends for 2021
  • How to pick the right financing company for your customers
  • How to reduce initial server response time?
  • What every ecommerce business needs to know when it comes to product images
  • What is shared hosting?
Taking care of communication within your small business
Best laptop brands
Cool business ideas

We serve cookies on this site to offer the excellent user service.

  • About
  • Contact
  • Privacy Policy
  • Terms and Conditions
  • Write for Us
This website and its content are copyrighted © 2014-2021 by atulhost.com and individual contributors.