On this page
Largest Contentful Paint (LCP) is the Core Web Vital that answers a simple question: how long until the visitor sees the main thing on the page? On a product page that is usually the product photo. On a blog post it is often the headline or the hero image.
It is the loading metric Google uses in its Core Web Vitals, and it is the one most sites struggle with. The good news: the causes are well understood, and most fixes do not require rebuilding your site.
What LCP measures
LCP is the time from the moment the visitor starts loading the page until the largest image or block of text visible in the first screen has been drawn. Elements that are only visible after scrolling do not count.
According to Google's guidance on web.dev, these elements can be the LCP element:
<img>elements (and images inside an<svg>)- the poster image of a
<video> - an element with a background image loaded with CSS
url() - block-level elements that contain text, such as a heading or a paragraph
The browser keeps updating its answer while the page loads. If a big hero image appears after the headline, the image becomes the new LCP element. The final value is the last candidate reported before the visitor interacts with the page.
What is a good LCP?
Google's thresholds, from web.dev:
| LCP | Rating |
|---|---|
| 2.5 seconds or less | Good |
| Between 2.5 and 4 seconds | Needs improvement |
| More than 4 seconds | Poor |
The score that matters is the 75th percentile of real visits, measured separately for mobile and desktop. In other words, three out of four visits should be at or under 2.5 seconds. A fast result on your office Wi-Fi does not mean much if most of your visitors are on phones with weaker connections.
Lab data and field data
There are two ways to measure LCP, and they often disagree:
- Lab data comes from a test run in a controlled setting, such as Lighthouse in Chrome DevTools or the lab section of PageSpeed Insights. It is great for debugging because you can repeat it.
- Field data comes from real visitors. Google's Chrome User Experience Report (CrUX) is the public source, and it is what PageSpeed Insights shows at the top of its report when your site has enough traffic.
Use lab data to find problems and check fixes. Use field data to know whether real visitors actually got faster.
Step 1: find your LCP element
You cannot fix LCP until you know what the LCP element is. Two easy ways:
- Run your page through PageSpeed Insights. In the diagnostics, look for the item that names the Largest Contentful Paint element. It shows you the exact image or text block.
- In Chrome DevTools, open the Performance panel and record a page load. The LCP marker shows which element it was and when it was drawn.
Check both a mobile and a desktop run. The LCP element is often different on each, because the layout changes.
Step 2: see where the time goes
Google's guidance splits LCP into four parts. Knowing which part is slow tells you which fix to use.
- Time to First Byte (TTFB): how long the server takes to send the first byte of HTML.
- Resource load delay: the gap between that first byte and the moment the browser starts downloading the LCP image. A long delay means the browser found the image late.
- Resource load duration: how long the image itself takes to download.
- Element render delay: the time between the image finishing and it actually being painted, often because CSS or JavaScript is still blocking the page.
For a text LCP element, there is no image download, so the load delay and duration are near zero and the other two parts matter most.
The fixes that work
Make the server answer quickly
If your TTFB is slow, everything else starts late. On WordPress and most PHP sites, the biggest win is full-page caching: instead of running PHP and database queries for every visit, the server sends a ready-made HTML file. A CDN helps too, because files come from a location near the visitor.
Let the browser find the LCP image early
The browser can only download what it knows about. Common mistakes that hide the LCP image:
- Lazy-loading the LCP image.
loading="lazy"is great for images further down the page, but on the hero image it tells the browser to wait. Remove it from the first-screen image. - Loading the hero image from CSS or JavaScript. A background image in a stylesheet, or an image inserted by a slider script, is discovered late. Use a normal
<img>in the HTML when you can, or preload it. - Not preloading it. A
<link rel="preload" as="image">in the<head>tells the browser about the image right away.
You can also give the image a higher priority with the fetchpriority="high" attribute, so the browser downloads it before less important files.
Make the image smaller
A big image takes longer to download, especially on mobile:
- Serve the right size. Use
srcsetandsizesso a phone does not download a 2,000-pixel-wide image to show it at 400 pixels. - Use modern formats. WebP and AVIF are usually much smaller than JPEG or PNG at the same visual quality. Our AVIF vs WebP guide explains the difference.
- Compress it. Most photos can be compressed further without anyone noticing.
Remove render-blocking CSS and JavaScript
If the image has downloaded but the page is still waiting on stylesheets or scripts, the visitor sees nothing. Fixes:
- Inline critical CSS: put the few rules the first screen needs directly in the HTML, and load the rest of the stylesheet without blocking.
- Defer or delay JavaScript that is not needed for the first screen, such as chat widgets, analytics and sliders below the fold.
- Avoid hiding content until JavaScript runs. Some themes and A/B testing tools hide the page until a script finishes. That delay goes straight into your LCP.
When the LCP element is text
If your LCP is a heading, web fonts are often the problem. Use font-display: swap so text shows with a fallback font while the web font loads, preload the one or two font files the first screen needs, and host fonts on your own domain or CDN rather than loading them from a third party.
A quick checklist
- I know my LCP element on mobile and desktop
- The page HTML is cached and served fast
- The LCP image is not lazy-loaded
- The LCP image is in the HTML or preloaded, with
fetchpriority="high" - Images are sized with
srcsetand served as WebP or AVIF - Critical CSS is inlined; non-essential JavaScript is deferred
- Fonts use
font-display: swap
How SpeedPack handles LCP
SpeedPack does most of this list for you. Pages are cached and served before WordPress loads, files come from our CDN, and images are compressed and converted to WebP. From Medium mode up, the LCP image gets a preload and high fetch priority. Strong and Ludicrous modes add critical CSS, image sizes that match how each image is shown, and AVIF (on the Pro plan). Your dashboard then shows the LCP your real visitors get, so you can see whether it worked.
Whatever tool you use, measure first, fix the biggest part of the breakdown, and check the result in field data a few weeks later.

