Wordpress LScache Plugin: Litespeed lazy loads image when Lazy-Load-Images>OFF
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello. Site: weldpundit.com Theme: Kadence Report number: LTDLQSQH I recently followed this guide onlinemediamasters.com litespeed cache setting to improve my sites speed. (I had the Autoptimize plugin with lazy-load and the ShortPixel with conversion to WebP and delivery with Cloudflare, but I didnt deactivate any of that since it wasnt mentioned in this guide) All worked perfectly, but I dont like the lazy-load above-the-fold when the site loads, its not good for user experience. I selected Media-Settings>Lazy-Load-Images>OFF, but the images still lazy load. I always purge all. I recall reading somewhere that its impossible to have Lightspeeds lazy load deactivated above-the-fold, except targeting specific image name and class? After that, I entered the logo and side-bar images, and the wp-post-image class in Media-Exludes, and it works (with Lazy-Load-Images>OFF). But now I get the Largest Contentful Paint image was not lazily loaded in Pagespeed Insights. (I didnt get that with Autoptimizes lazy load, but the images appeared ok with that plugin, because of JS I suppose?) Then I read about conflicts between similar plugins and I deactivated the Autoptimize plugin, but the images still lazy load (with Lazy-Load-Images>OFF) With Debug Settings>Disable All Features>ON the problems solves. With Enable Cache>OFF the problem remains. With Toolbox > Beta Test I downgraded to 4.4.2 and 4.4.1 and upgraded to Dev and the problem remains. My main question is why the litespeed plugin still lazy loads the images with Media-Settings>Lazy-Load-Images>OFF? (the Autoptimize plugin is deactivated) This topic was modified 1 year, 1 month ago by andval. This topic was modified 1 year, 1 month ago by andval. Hi, on which page you see lazyload ? I viewed the home page but didnt see any lazyload initiated by LSCWP Best regards, I added the images of the home page in Media excludes>Lazy Load Image Excludes so they do not lazy load. ( also the wp-post-image class in Lazy Load Image Class Name Excludes ) But, if you go here: https://www.weldpundit.com/can-you-weld-rusty-metal/ There is an image of a rusted metal when you scroll down (right before the H2: What are the problems when you weld rusted metals?). If you inspect the image, it shows the litespeed-loaded and the data-lazyloaded= 1 classes. (I dont know what the last class do). I also see a loading= lazy in data-src Sometimes the image takes too long to appear, and I have to reload the page for it to appear. The problem is that Im sure I have set Media-Settings>Lazy-Load-Images>OFF, but the images still lazy load. There is no other active plugin that lazy loads images and the (free) Kadence theme doesnt have a lazy load option. emmm? I still dont see the images being lazyloaded it only shows 3 data-lazyload , one is the style CSS, one is JS lib , one is ifram lazyload , nothing related to images This is the image I mention in my previous post. I am not a coder to understand much, but you may be able to make some sense out of the HTML code. This is the pagespeed results after I followed the procedure I mentioned in my first post(even when I set the Lazy Load Images>OFF). The logo, post image, and cookies notice are not visible. This is the pagespeed results before I followed the procedure I mentioned in my first post (and after I set the Debug Settings>Disable All Features>ON) Right now I deleted all the Lazy load Image (and class) Excludes and this is the result I get in pagespeed. The responsive Placeholder Color shows and the post image is visible (it shouldnt be because its not in the Exludes anymore)? This is the current Media Settings settings. you have guest optimization enable , it is an individual control other than ones you have in settings by the way , you have a 403 error on guest.vary.php request, this will make guest mode broken , please seek into it Thanks for the tips. 1. If I disable the guest optimization, the problems disappear. But there is a significant drop in google pagespeed score. 2. Can you give me more information on the guest.vary.php? I googled it, but didnt find anything helpful. What should I do about it? 3. I found this on quic.cloud troubleshooting: https://weldpundit.com/?rest_route=/litespeed/v1/token And the plugin that doesnt allow a 404 code is LiteSpeed! How can I fix that? Hi, 1) yes , because you have some issue with guest mode , something make the guest mode redirection request to 403 error 2) this request is critical and essential to guest mode functionality , when it is blocked, guest mode breaks. I think its from this rule in your htaccess from iTheme plugin # Disable PHP in Plugins - Security > Settings > System Tweaks > PHP in Plugins RewriteRule ^wp -content/plugins/. .(?:php[1-7]?|pht|phtml?|phps) .?$ - [NC,F] you need to unblock /wp-content/plugins/ dir 3) the latest WP version has some restriction in place makes that 404 request only to a valid request with authentication , like from our nodes only , so you can not exactly verify it from your own now , but it seems works fine on my test Best regards, I hope that by unblock /wp-content/plugins/ dir you meant this: #RewriteRule ^wp -content/plugins/. .(?:php[1-7]?|pht|phtml?|phps) .?$ ? [NC,F] Everything appears to work perfectly now. Here https://docs.litespeedtech.com/lscache/lscwp/thirdparty/ you have the: Add /wp-content/plugins/litespeed-cache/guest.vary.php to whitelist for the iThemes plugin. Is this another way to fix the 403 problem without editing that .htaccess? or its a different thing? Hi, uncheck this option should do it as well Best regards, Thanks for the support, all images appear to work fine now.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference