Largest Contentful Paint (LCP): What It Is and How to Fix It
Make the biggest visible element on your page load in under 2.5 seconds.
What it means
Largest Contentful Paint (LCP) measures how long the largest element in the first screen of a page, usually a hero image, a video poster or the main headline, takes to appear. It is one of Google's three Core Web Vitals, alongside Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS).
Why it matters
LCP is the moment a visitor sees that the page has really loaded. Until then they are looking at a blank or half-built screen, and many leave before your offer appears. Google also uses Core Web Vitals as a ranking signal, so a slow LCP can cost you both the visit and the position.
How to fix it
- Find the exact element. Run the page through PageSpeed Insights and open the Largest Contentful Paint element audit, which names it. On most sites it is the hero image or the main heading, and it is often a different element on mobile than on desktop.
- Find which part of LCP is slow. The LCP breakdown in PageSpeed Insights, or the Performance panel in Chrome DevTools, splits the time into server response, load delay, load time and render delay (explained below). Fix the part that is actually slow instead of guessing.
- If the server is slow (Time to First Byte above about 0.8 seconds), turn on full-page caching at your host or a CDN, and remove the plugins, redirects or database queries that run before the HTML is sent.
- Make the LCP image easy to find. Use a normal <img> tag in the HTML rather than a CSS background or an image added by JavaScript, remove loading="lazy" from it, and add fetchpriority="high" so the browser downloads it first.
- If the image can only be found late, for example in a CSS file or on another domain, add <link rel="preload" as="image"> for it in the page head so the download starts straight away.
- Make the image smaller: resize it to the largest size actually displayed, serve WebP or AVIF, compress it with Squoosh or TinyPNG, and use srcset so phones get a smaller file than desktops.
- Remove what blocks the first paint: defer scripts that are not needed for the first screen, load non-critical CSS later, and drop third-party tags you do not use (see the render-blocking guide).
- If the LCP element is text, make sure it is not waiting for a web font. Preload the font file and use font-display: swap so the heading shows in a fallback font immediately.
- Re-run the audit after each change. Improvements add up, and checking each one shows which change actually helped.
Common mistakes
- Lazy-loading the hero image. loading="lazy" tells the browser to wait, which is the opposite of what the largest element on the first screen needs.
- Fixing the desktop LCP element when the mobile one is different. Check both in PageSpeed Insights.
- Preloading many images. Preload only the one LCP image; preloading everything makes the files compete for the same bandwidth.
- Fading or sliding the hero in from opacity 0. The browser only counts the element once it is visible, so the animation adds its full length to LCP.
- Judging a fix by a single lab run. Lighthouse scores vary from run to run, so run it two or three times before and after.
How to check it worked
Re-run PageSpeed Insights on mobile and desktop. The lab result from Lighthouse changes straight away. The field data at the top of the report comes from real Chrome users over the last 28 days, so it takes up to four weeks to fully reflect a fix. Once the fix is live, open the Core Web Vitals report in Google Search Console and start validation for the affected pages.
What counts as a good LCP score
Google judges the 75th percentile of real visits, measured separately for mobile and desktop. Three out of four visits need to reach the target, so slow phones and slow connections count in full and a fast average is not enough.
- Good: 2.5 seconds or less.
- Needs improvement: between 2.5 and 4 seconds.
- Poor: more than 4 seconds.
Which element is the LCP element
While the page loads, the browser keeps track of the largest image or text block visible in the first screen and updates its choice as bigger elements appear. It stops once the visitor scrolls, taps or types.
- Images, including an <image> inside an SVG.
- The poster image or first frame of a video.
- An element with a background image set in CSS.
- A block of text, such as a heading or a paragraph.
The four parts of LCP
Every LCP time is made of four parts in a row. Knowing which one is long tells you which fix to use.
- Time to First Byte: from the click until the first byte of the HTML arrives. Slow hosting, no caching and redirects make it long.
- Load delay: from the first byte until the browser starts downloading the LCP image. A long delay means the image was found late, for example because it is lazy-loaded, set in CSS or added by JavaScript.
- Load time: how long the image takes to download. Large files and slow connections make it long.
- Render delay: from the end of the download until the element appears. Render-blocking CSS and scripts, web fonts and animations make it long.
Common questions
Is LCP a Google ranking factor?
Yes. LCP is one of the Core Web Vitals, which are part of Google's page experience signals. It works more like a tie-breaker than a main factor: a fast page will not outrank a much more relevant one, but between two similar pages the faster one has an edge.
What is the difference between LCP and First Contentful Paint (FCP)?
FCP is the moment anything first appears, even a logo or a background colour. LCP is the moment the main content appears. A page can have a fast FCP and still a slow LCP if the hero image arrives late.
Why is my LCP different in PageSpeed Insights and Search Console?
Lighthouse in PageSpeed Insights loads the page once in a lab, on a simulated device and network. Search Console reports real visits over 28 days and groups similar pages together. The real-visit numbers are the ones Google uses for ranking.
Why is LCP so much worse on mobile?
The mobile test simulates a mid-range phone on a slow 4G connection, so large images and heavy scripts cost far more time. Real phone visitors are often in the same position, which is why the mobile score usually matters most.
Helpful tools
- PageSpeed Insights
- Chrome DevTools → Performance panel
- Google Search Console → Core Web Vitals report
- Squoosh (image compression)
- WebPageTest (waterfall view)
Not sure if this affects your site? Analyze your website for free or compare it with a competitor.
Related guides
- Convert images to WebP or AVIF: Modern image formats are 25–50% smaller than JPEG/PNG at the same visual quality.
- Remove render-blocking scripts and styles: Let the browser paint first, load everything else after.
- Optimise web font loading: Prevent invisible or mismatched text while fonts load by preloading and using font-display.
- Set up browser caching for faster repeat visits: Configure Cache-Control headers so returning visitors load your site from memory instead of the network.