lazyload html images code example
Example 1: html lazy loading images
<img loading="lazy" src="https://via.placeholder.com/320x200" alt="Lazy loaded image" />
Example 2: Lazy laoding of images
<img data-src="image.jpg" alt="test image">
<img loading="lazy" src="https://via.placeholder.com/320x200" alt="Lazy loaded image" />
<img data-src="image.jpg" alt="test image">