lazy image loading code example
Example 1: html lazy loading images
<img loading="lazy" src="https://via.placeholder.com/320x200" alt="Lazy loaded image" />
Example 2: lazy loading attribute
<img src="image.jpg" alt="..." loading="lazy">
Example 3: html lazy load images
<img src="image.png" loading="lazy" alt="…" style="height:200px; width:200px;">