• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

How to disable image lazy-loading in WordPress

Learn with this tutorial how to disable lazy-loading of images in WordPress.

WordPress 5.5 introduced quite a few new features, among them, lazy-loading.

This improvement is fantastic because it does not load unnecessarily images, it only does it when the user scrolls to where they are.

But it is possible that in some circumstances you may want to disable it, so let’s see how you can do it:

Snippet to disable image lazy-loading in WordPress

Add the following code at the end of functions.php or in your functionality plugin:

To see this and another 837 code snippets of this website, login or subscribe here.

It’s that easy.

However, I only recommend that you use this snippet when it is justified.

You can also take a look at the tutorial on how to modify the delayed loading of images to improve the Core Web Vitals score.

Conclusions

Do you want to disable the delayed loading of images in WordPress? Now you know how.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

PHP WordPress

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?