• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

Disable WordPress default LAZY LOAD

WordPress plugins Nov 18, 2020 by Johnny 10 Comments

How to disable the native WordPress lazy load function.

Paste the snippet below into your theme functions.php file:

/**
*  Disable WordPress default image lazy load
**/
add_filter( 'wp_lazy_loading_enabled', '__return_false' );

For those wondering why I think most sites should disable image lazy load, read this:

  • Why You Should (almost) NEVER Use Lazy Load

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress plugins

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

InMotion VPS Hosting Review (HINT: they’re really bad)

Webhosting Control Panel Review – UPDATED 2021

SEO vs Facebook Ads

The problem with IM Marketing Products

Best WordPress Cache Plugins Review – GIANT ROUNDUP

Difference between Marketing, Advertising, and Branding

Reader Interactions

10 Comments

  1. Regev

    November 19, 2020 at 12:22 pm

    Since when does WP lazy loads images automatically? Why would plugins allow you to Enable it if its already happening by default?

    Reply
    • Johnny

      November 19, 2020 at 3:29 pm

      It’s been recently done. https://make.wordpress.org/core/2020/07/14/lazy-loading-images-in-5-5/

      Reply
      • Regev

        November 19, 2020 at 11:15 pm

        Goddammit!

        Reply
  2. Rico2000

    November 9, 2021 at 1:04 pm

    Hello
    I find your topic on Google, i got problem on https://mobilecheats.edu.pl with lazy.
    I add your code in functions.php but still show problem with lazy.
    Can u tell me more how we can solved that problem?

    Reply
  3. Kingsley Felix

    May 22, 2022 at 1:19 am

    I have tried this code it does not seem to work

    Reply
  4. Patrick

    August 8, 2022 at 11:37 pm

    Hi Johnny,

    thanks for sharing this. Unfortunately I tried your code as well on a customers page and it does not seem to work.

    Any ideas what could be the reason?

    Best regards,
    Patrick

    Reply
    • Johnny

      August 9, 2022 at 3:11 am

      Hmmmm….I’ll probably have to check and see if things got updated. Is this just one particular site or all sites you tried?

      Reply
  5. Johanna

    August 17, 2022 at 2:03 am

    Hi

    I have, a problem with this tricks. I add this code to functions.php but its not working. I use generatepress theme and wordpress v 6.0.1.

    Its my website : https://www.agridane.com/

    Please help me 😉

    Reply
  6. sumon

    January 21, 2023 at 1:01 pm

    It’s not working anymore.

    Can you update the snippet?

    Reply
  7. sumon

    January 23, 2023 at 10:03 pm

    Okay, I’ve found a solution at last that works: https://weusewp.com/tutorial/disable-wordpress-native-lazy-loading/

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy