Product images were our LCP problem. The pipeline we ended with:
- Uploads are re-encoded to WebP (quality ~82) and capped at 2560px on the longest side.
- Several widths are generated and served with
srcset. - The LCP image gets
fetchpriority="high"and is not lazy-loaded. - Everything else is lazy-loaded with explicit width and height to avoid layout shift.
LCP went from 3.9s to 1.8s on a mid-range phone.
- Reacted by