Wordpress LScache Plugin: WEBP images are not served
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello! I use litespeed cache plugin + Closte CDN + Visual Portfolio Gallery Im optimizing my site for speed and results are here One of the big open points is Serve images in next-gen formats and it seems that something on the junction of CDN/litespeed/Visual Portfolio doesnt work, not allowing viewers to see WEBP versions. What could be the problem here? The page I need help with: https://petrenko.photos/ Hi, By design , LSCWP only can only do webp replacement in HTML code , while some of your images are loaded by JS , so LSCWP can not guarantee the webp replacement when it is loaded by JS. Also please try add data-vp-popup-img to webp replacement srcset , purge all , and see if it improves it. Best regards, Thanks, Ive added div.data-vp-popup-img img.data-vpf-src div.vp-portfolio__item-img to WebP Attribute To Replace setting and it seems we are going right direction. The only thing I dont understand, why in this part one of the sizes (414w) is not served as WEBP? data-vp-popup-img-srcset=//cdn-5eb92a50c1ac18119416514e.closte.com/wp-content/uploads/2020/05/petrenko.corporate.photographer.geneva.DSC_6241-Edit.jpg.webp 1600w, //cdn-5eb92a50c1ac18119416514e.closte.com/wp-content/uploads/2020/05/petrenko.corporate.photographer.geneva.DSC_6241-Edit-414x276.jpg 414w Disregard. I needed to Rescan New Thumbnails in Image optimisation settings of the plugin. Hi, Is everything fine now ? Best regards, Yes, seems like everything works. Thanks!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference