Skip to content

PERF002 · Image loading hint

Severity: info

Every <img> element must have an explicit loading attribute. Images missing the loading attribute are flagged.

A loading attribute lets the browser defer offscreen images; without it images load eagerly and can delay more important content. Static analysis cannot tell which image is the LCP, so this is advisory.

Add loading="lazy" to offscreen <img> elements (leave the LCP/hero image eager):

<img src="/thumb.jpg" width="320" height="240" loading="lazy" alt="" />