Glossary
Largest Contentful Paint
Largest Contentful Paint measures when the largest eligible content element becomes visible in the initial viewport. The element can differ by device, so inspect the actual trace before changing an image.
Worked example
On mobile the heading may be the largest element, while a wide photograph dominates on desktop. Preloading the photograph helps only the case that needs it.
For guidance on this topic, see web.dev: Web Vitals.
Practical checklist
- Inspect the trace
- Check response timing
- Avoid lazy-loading the LCP image