Problems With Lazyload
-
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” ?`
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.