Largest Contentful Paint (LCP) measures when the largest visual element on the page renders. To make Google happy, aim for an LCP time under 2 seconds. Here's everything you need to know to start measuring, debugging, and optimizing LCP.
Common issues that can hurt Largest Contentful Paint times:
To improve LCP time, you need to first understand the critical rendering path for your pages, and then identify the issues that are delaying your largest paint element. Synthetic monitoring can help identify which of the issues described above is the culprit.
For example, this synthetic test result for the Amazon home page shows that the LCP time is 3.63 seconds – in other words, outside Google's threshold of 2.5 seconds. You can also see that the LCP resource is actually a collection of images, not a single image:
The high-level waterfall chart for this page shows that the LCP event fires after many other key metrics, including Start Render:
Expanding the waterfall chart reveals a few things:
1. The HTML document has a Long Tasks time of 382 milliseconds. If you look closely below, you can see that it doesn't fully parse until 3.6 seconds. The red bars indicate all the Long Tasks for this resource.
2. There are 289 resources that are rendered before the LCP event, the bulk of which are images.
3. Some or all of these images have been served in JavaScript bundles that take an excessive amount of time to execute. The green and red bars in the waterfall show when the browser is working to execute the JS, and the red bars indicate Long Tasks. You can see below how much JS execution takes place before LCP:
4. Many of the images in those JS bundles are outside the viewport. This means they could have been deferred/lazy-loaded.
These practices will help fix the most common issues with LCP times:
More: Optimize Largest Contentful Paint
In SpeedCurve, all the performance optimization recommendations you see on your Vitals and Improve dashboards – as well as in your synthetic test details – are badged so you can see which Web Vital they affect.
When you fix those issues, you should see improvements in your Vitals and Lighthouse scores.