in CSS by
Can we implement lazy loading in HTML?

1 Answer

0 votes
by

Yes , you can by adding loading attribute

Do you know that adding a background-color to an <img/> works when the image fails to load?

img {

   background-color: #525252;

}

You can improve  fast your website.

<img src="path.jpg" loading="lazy">

</img>

Due to loading = lazy, images will load when users scroll them

...