This HTML attribute can be added to image or iframe tags and provides native browser support for lazy loading resources. You can set it to one of these modes lazy|eager|auto. Check browser support before using.
#html#attribute#performance
<!-- On the image tag --><imgsrc="./assets/icon-144x144.png"loading="lazy"alt="Some image"/><!-- In the picture element with source sets --><picture><sourcemedia="(min-width: 1024px)"srcset="./assets/icon-512x512.png"><sourcesrcset="./assets/icon-144x144.png 1x, ./assets/icon-512x512.png 2x"><imgsrc="./assets/icon-64x64.png"loading="lazy"></picture>