• Resolved cookgirl26

    (@cookgirl26)


    Hello. I have WordPress 6.0.1.

    For the past few days, I have been trying to disable the WordPress native lazy loading because my featured images are giving my site a very high LCP score.

    This code doesn’t seem to work (add_filter( ‘wp_lazy_loading_enabled’, ‘__return_false’ );). After I use it, pagespeed.web.dev still says that my featured images are being lazily loaded.

    My LCP is staying at around 6.4 ms, which isn’t good. No matter what I do, it won’t go down. It seems as if the lazy loading is playing a very big part in it.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • You are using WP Rocket where there is also a LazyLoad option. Have you disabled it as well?

    Since WP Rocket is a commercial product, I would ask you to contact their support to clarify your issue. Questions about commercial products are not allowed in the forum here.

    To disable lazy loading on a specific post or page, open the post or page, and in the “Cache Options” meta box, un-check the “LazyLoad for images” option. Don’t forget to publish or update the post or page to save your changes.

    Note: what @akshay1534 describes is a feature of WP Rocket and only affects a single page or post. If you want to disable LazyLoad on all pages, the way I described above would be more appropriate. And as already written WP Rocket is a commercial product about which questions are not allowed here in the forum.

    Thread Starter cookgirl26

    (@cookgirl26)

    Thank you for your input, and for letting me know that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t disable WordPress lazy loading’ is closed to new replies.