How to Lazy load background-image (CSS)?
-
Hello,
I’m a newbie, I know there is a way, but I can’t figure out, can someone give me an example on how to enable lazy load for background-image?This is the code I want to lazy load
‘<div class=”latest-article-images” style=”background-image: url(‘<?php the_post_thumbnail_url(‘medium’); ?>’)” itemprop=”image” itemscope itemtype=”https://schema.org/ImageObject”></div>’Thanks,
- The topic ‘How to Lazy load background-image (CSS)?’ is closed to new replies.