Performance: Image optimization
HIGH IMPACT
Image optimization affects page load speed by reducing the size and load time of images, which improves the Largest Contentful Paint (LCP) metric.
<img src="photo.webp" alt="Photo" loading="lazy" width="600" height="400">
<img src="large-photo.jpg" alt="Photo">
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Large uncompressed images | Minimal | 0 | High due to large decode and paint | [X] Bad |
| Optimized WebP images with lazy loading | Minimal | 0 | Low due to smaller decode and deferred paint | [OK] Good |