Lazy load ‘background-image’
-
Hi. I love LiteSpeed Cache lazy load feature. It works flawlessly so far. However, I’m noticing that the lazy load doesn’t work on images that are set with
background-image.For example, I am using the AnWP Post Grid and Post Carousel Slider for Elementor plugin to display my posts in grid and that plugin uses
background-imageto display featured image. The code looks like this:
<div class="anwp-pg-post-teaser__thumbnail-img anwp-pg-height-300" style="background-image: url(image.jpg)"></div>Is it possible to lazy load that too? Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Lazy load ‘background-image’’ is closed to new replies.