Wordpress LScache Plugin: Background image not being lazy loaded properly
Last Updated on: Wed, 15 Apr 2026 00:00:02 When we enable lazy loading the background images are not being loaded properly. It looks like the url() part is being added twice. Weve disabled lazy loading images until this gets resolved. background-image: url( url(https://pegsfoundation.org/wp-content/uploads/2021/06/AdobeStock_9909442-blur_optimized-scaled.jpg.webp) ) The page I need help with: https://pegsfoundation.org/ the plugin does not support lazyload on background image from CSS code Gotcha. Any ideas why they would break when lazy loading is enabled in the litespeed settings and not when its disabled? please try, does it show 2 url() if you turn off webp replacement ? It does yeah. url( url(https://pegsfoundation.org/wp-content/uploads/2021/06/AdobeStock_9909442-blur_optimized-scaled.jpg) ) now it weirds me please try the default setting , see if this still happens Hmm by default setting do you mean turn lazy loading off? We currently do have lazy loading off and the images load fine. hmmm? so it display correctly in the source code with lazyload off ? Yep with lazy loading turned off, the background image urls look like this: background-image: url(/wp-content/uploads/2021/06/NAVTAB-Focus_optimized.jpg.webp) now this is weird please create a ticket by mail to support at litespeedtech.com with reference link to this topic we will investigate furhter.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference