SEO & Search Marketing

How to Improve Largest Contentful Paint (LCP): A Practical Guide

Largest Contentful Paint (LCP) measures how long it takes for the main content of a page, usually the biggest image or block of text in view, to appear. It is one of Google's Core Web Vitals, and it…

Largest Contentful Paint (LCP) measures how long it takes for the main content of a page, usually the biggest image or block of text in view, to appear. It is one of Google's Core Web Vitals, and it is the one most closely tied to how fast a page feels. A page with a slow LCP makes visitors stare at a blank or half-loaded screen, and many will leave before the content arrives.

This guide explains what LCP measures, what good looks like, the most common causes of a slow LCP, and the fixes that make the biggest difference.

What Is LCP?

LCP is the time from when the page starts loading to when the largest image or text block visible in the viewport is rendered. Typical LCP elements include:

  • A hero image or banner
  • A main product image
  • A large heading or text block
  • A video poster image
  • A background image loaded through CSS

What Is a Good LCP?

Google's thresholds, measured at the 75th percentile of page loads:

LCPRating
2.5 seconds or lessGood
2.5 to 4.0 secondsNeeds improvement
Over 4.0 secondsPoor

Google's web.dev LCP guide explains how it is measured.

Why LCP Matters

  • User experience: a fast LCP makes pages feel fast
  • Core Web Vitals: LCP is part of how Google assesses page experience
  • Conversions: faster pages tend to convert better
  • Mobile users: slow networks magnify LCP problems

The Four Parts of LCP

LCP time can be broken into four parts:

  1. Time to first byte (TTFB): how long the server takes to start responding
  2. Resource load delay: the time between the first byte and when the browser starts loading the LCP resource
  3. Resource load time: how long the LCP image or file takes to download
  4. Element render delay: the time between the resource loading and it appearing on screen

Improving LCP means shortening one or more of these.

Tip: Identify your LCP element first. PageSpeed Insights and Chrome DevTools both show which element is the LCP, so you know exactly what to optimise.

Fix 1: Reduce Server Response Time

A slow server delays everything.

  • Use caching, at the server and with a CDN
  • Optimise database queries and application code
  • Use a CDN to serve content from locations near visitors
  • Upgrade hosting if the server is underpowered

Fix 2: Make the LCP Image Load Sooner

Do not lazy load the LCP image

Lazy loading delays images until they are near the viewport. For the main above-the-fold image, that delay hurts LCP. Load it eagerly.

Preload it if it is discovered late

If the LCP image is set in CSS or loaded by JavaScript, the browser discovers it late. A preload hint tells the browser to fetch it early:

<link rel="preload" as="image" href="hero.avif" fetchpriority="high">

Use fetchpriority

Add fetchpriority="high" to the LCP image so the browser prioritises it.

Put it in the HTML

Images in the initial HTML are discovered sooner than those added by scripts.

Fix 3: Make the LCP Image Smaller

Large images take longer to download, especially on mobile.

  • Resize to the displayed size
  • Use modern formats such as AVIF or WebP
  • Compress sensibly
  • Use responsive images so mobile devices download smaller versions

Images are often the single biggest contributor to slow LCP, and the easiest to fix.

Fix 4: Reduce Render-Blocking Resources

CSS and synchronous JavaScript in the head can delay rendering.

  • Inline critical CSS for above-the-fold content
  • Defer non-critical CSS
  • Defer or async non-critical JavaScript
  • Remove unused CSS and JavaScript

Fix 5: Reduce JavaScript Overall

Heavy JavaScript delays rendering and keeps the browser busy.

  • Remove unused libraries
  • Split code so each page loads only what it needs
  • Review third-party scripts, such as tag managers, chat widgets, A/B testing tools and trackers
  • Render important content on the server rather than only in the browser

Fix 6: Reduce Requests and Hosts

Every separate host needs a new connection; every request adds overhead.

  • Limit third-party domains
  • Use preconnect for essential third-party hosts
  • Self-host fonts and critical scripts where practical

Fix 7: Optimise Fonts for Text LCP

If the LCP element is text, fonts can delay it.

  • Use font-display: swap so text appears in a fallback font immediately
  • Preload critical fonts
  • Use fewer font weights and families

Estimating Where the Time Goes

Before changing things, it helps to understand which parts of the page weigh most. A page weight and load time estimator takes your page's transferred sizes by type, request count, host count and main image size, and estimates largest paint and full load on connections such as Slow 4G, flagging which budgets are exceeded. It shows, for example, whether halving image weight or cutting JavaScript would make the bigger difference.

Example: Fixing a Slow Homepage

Imagine a travel site whose mobile LCP is 6.8 seconds. The LCP element is a hero image: a 6000-pixel JPEG weighing 4.1 MB, displayed at 1600 pixels, and lazy loaded by the theme.

The team:

  1. Resizes the hero to 1600 pixels and converts it to AVIF, cutting it to about 180 KB
  2. Removes lazy loading from the hero and adds fetchpriority="high"
  3. Preloads the hero image
  4. Defers two non-critical third-party scripts

Mobile LCP falls to about 2.4 seconds, inside the "good" range.

Measuring LCP

  • PageSpeed Insights: lab and field data for any URL
  • Lighthouse: lab testing in Chrome
  • Search Console Core Web Vitals report: real-user data grouped by page type
  • Chrome DevTools Performance panel: detailed timing of the LCP element
  • Real user monitoring tools: ongoing field measurement

Lab tests are useful for diagnosing; field data shows what real visitors experience.

LCP by Platform

WordPress

Themes and page builders often lazy load every image, including the hero. Recent WordPress versions skip lazy loading for the first images on a page, but plugins can override this. Check that the hero image is not lazy loaded, and use an image optimisation plugin or CDN to serve modern formats.

Shopify

Theme hero sections and product galleries are common LCP elements. Use Shopify's image sizing parameters to serve appropriately sized images, avoid heavy apps that inject scripts into every page, and review the theme's loading behaviour for the first image.

JavaScript frameworks

Client-side rendered pages often have slow LCP because content appears only after JavaScript runs. Server-side rendering, static generation or streaming can show the main content much sooner.

Sites with sliders and carousels

Hero sliders often load several large images and scripts before the first slide appears. Replacing a slider with a single, optimised hero image is one of the most effective LCP fixes.

Prioritising LCP Fixes Across a Site

LCP problems usually come from templates rather than individual pages:

  1. Group pages by template in Search Console's Core Web Vitals report
  2. Identify the LCP element on a representative page for each template
  3. Fix the template, such as image sizes, loading attributes and preloads
  4. Re-test a sample of pages
  5. Wait for field data to update over the following weeks

Focus first on templates with the most traffic, such as the home page, product pages and category pages.

Field Data vs Lab Data

LCP can be measured in two ways, and they often show different numbers:

Field dataLab data
SourceReal visitors (Chrome UX Report)A simulated test (Lighthouse, PageSpeed Insights lab)
ShowsWhat users actually experienceWhat happens under fixed test conditions
Used for Core Web Vitals assessmentYesNo
Best forJudging real performanceDiagnosing problems and testing fixes

Field data reflects many devices, networks and locations, so it is the truer picture. Lab data is consistent and detailed, so it is better for finding causes. Use lab data to test fixes, then confirm the improvement in field data over the following weeks. Field data in PageSpeed Insights and Search Console covers a rolling 28-day period, so improvements take time to show.

Identifying the LCP Element

Before fixing LCP, find out which element it is. In PageSpeed Insights, the diagnostics section names the LCP element. In Chrome developer tools, the Performance panel marks LCP on the timeline and highlights the element. Common LCP elements are:

  • Hero images on home and landing pages
  • Product images on product pages
  • Large headings or text blocks on articles
  • Background images set in CSS
  • Video poster images

The right fix depends on the element. A text LCP is usually helped by faster server response and font loading. An image LCP is helped by image optimisation and loading priority.

LCP and Lazy Loading

Lazy loading is excellent for images below the fold, but applying it to the LCP image delays it. Many sites apply loading="lazy" to every image by default. Check that the main above-the-fold image is excluded, and consider adding fetchpriority="high" to it. This one change can make a noticeable difference to LCP.

Google's guide to optimizing Largest Contentful Paint explains each part of LCP and the fixes in more detail.

LCP on Mobile vs Desktop

LCP is usually worse on mobile, because of slower connections and less powerful devices. Check mobile and desktop separately in PageSpeed Insights and Search Console, and prioritise fixes for the mobile experience, which most visitors see.

Common Mistakes

  • Lazy loading the LCP image
  • Uploading oversized images
  • Loading the hero through CSS or JavaScript without preloading
  • Too many third-party scripts
  • Optimising for desktop only
  • Ignoring server response time

Frequently Asked Questions

What is a good LCP score?

2.5 seconds or less at the 75th percentile of page loads.

What usually causes slow LCP?

Large images, slow servers, render-blocking CSS and JavaScript, and late discovery of the LCP image.

Does LCP affect rankings?

Core Web Vitals are part of Google's page experience signals. Good LCP mainly matters for user experience, which supports SEO.

How do I find my LCP element?

PageSpeed Insights and Chrome DevTools identify it.

Why is my LCP worse on mobile?

Slower networks, less powerful devices and larger relative image sizes all make LCP slower on mobile.


LCP is usually one image, one server or one script away from good. Find out which part of your page weighs most with the free Page Weight & Load Time Estimator, fix the biggest contributor first, and confirm the result with real measurements.