.image--about { background: url(../img/ZIZF.gif) no-repeat center; background-size: cover }
I have this CSS. I want to use lazy loading to following images that I load via CSS, can you please help me out?
I don't know if it possible to apply lazy loading by css but it 's possible with HTML by adding single attribute loading="lazy"
loading="lazy"
<img src="myimage.jpg" loading="lazy" alt="..." />
other values for loading like eager and auto
eager
auto
others method will required JavaScript check this ?? Five Ways to Lazy Load Images for Better Website Performance
2.1m questions
2.1m answers
60 comments
57.0k users