Load pictures when they are needed

Your task In the code box, write lazyImages(html), which adds loading="lazy" decoding="async" to every img tag except the first, and leaves alone a tag that already has loading. Build dist/index.html, and print Lazy loading on 2 of 3 pictures with the real numbers. Then press Run my code.

Getting the editor ready