Support » Plugin: LiteSpeed Cache » Problems With Lazyload

  • Resolved worpressy

    (@worpressy)


    Hello,

    If I disable Lazyload on a particular image URL in litespeed cache, WordPress will automatically add its on lazyload as <img loading=”lazy”.

    So I added this to function.php to disable globally WordPress native lazyload:

    // Disable global WordPress Lazyload.
    add_filter( 'wp_lazy_loading_enabled', '__return_false' );

    And this seems to do the trick.

    But here is my problem.

    I have over 2,000 pages and several images in each page. The first image in each page is a problem when using lazy loading as it becomes the largest contentful element painted within the viewport, slowing the page from loading.

    How do resolve this issue without manually adding each image URL to Litespeed “media excludes” ?`

    • This topic was modified 7 months, 1 week ago by worpressy.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems With Lazyload’ is closed to new replies.