Find images without a loading attribute on a page
check lazy loading images | images without loading lazy | defer offscreen images pagespeed | are images lazy loaded | curl | lazy-loading | images | core-web-vitalscurl -s https://example.com/ | tr '\n' ' ' | grep -oiE '<img[^>]*>' | grep -vi 'loading='Prints every <img> element without a loading attribute. Images below the fold should carry loading="lazy" so they do not slow down the initial page render. No output means all images have a loading attribute.
Note: Do not lazy load the main image above the fold (the LCP element), otherwise LCP gets worse. To see which images do have loading="lazy", end the pipe with grep -i 'loading="lazy"' instead of grep -vi.
Also searched as
- check lazy loading images
- images without loading lazy
- defer offscreen images pagespeed
- are images lazy loaded