To fix LCP, identify the page's LCP element in field data, split its time into the four sub-parts (time to first byte, resource load delay, resource load duration and element render delay), and fix whichever sub-part is eating the budget. A page passes when its 75th-percentile Largest Contentful Paint is 2.5 seconds or less; over 4 seconds is poor. Most failing pages I audit are not slow because the hero image is big. They are slow because the browser discovers the image late, or because the HTML itself arrives late.
This guide follows the order I use on real sites: confirm the problem in field data, find the element, break it into sub-parts, then apply the fix for the sub-part that is actually slow. Thresholds, APIs and tool names were checked against web.dev, Chrome's DevTools documentation and the web-vitals 6.2.3 package as of December 2026.
What LCP measures and the current thresholds
Largest Contentful Paint reports the render time of the largest image, video or text block visible in the viewport, measured from when the user started loading the page. Candidates are <img> elements, <image> inside SVG, the poster or first frame of a <video>, elements with a url() background image (not gradients), and block-level elements containing text.
| LCP at p75 | Rating |
|---|---|
| ≤ 2.5 s | Good |
| > 2.5 s and ≤ 4.0 s | Needs improvement |
| > 4.0 s | Poor |
The threshold applies to the 75th percentile of page loads, segmented by mobile and desktop. A few rules matter when you start debugging:
- Only the visible part of an element counts. An image scaled up beyond its intrinsic size is counted at its intrinsic size.
- Chromium ignores elements with
opacity: 0, elements that cover the full viewport (treated as backgrounds), and low-entropy placeholder images. That last rule is why a blurry LQIP placeholder does not "win" LCP for you. - The browser stops reporting new candidates once the user taps, scrolls or presses a key.
LCP is no longer a Chrome-only metric. web.dev announced on 17 December 2025 that LCP and INP became Baseline Newly available when Safari 26.2 shipped the APIs. The same post notes that Chrome measures up to presentationTime while Firefox and Safari stop at the earlier paintTime, so expect small millisecond differences between browsers. CrUX, the dataset Google Search uses, still comes only from Chrome.
On ranking, Google's own wording is that Core Web Vitals "align with what our core ranking systems seek to reward". In my experience LCP is a tiebreaker for rankings and a much bigger lever for conversion and bounce rate. Fix it for users; the search benefit is a side effect.
Step 1: confirm the problem in field data (CrUX)
Lab tools such as Lighthouse run one load on one simulated device. Your users run thousands of loads on real networks. Always start from field data, because the fix for a 3.2 s p75 caused by slow mobile networks in one country is different from the fix for a hero image that is discovered late everywhere.
Three places to look, from coarse to precise:
- Search Console's Core Web Vitals report groups URLs with similar problems. Good for spotting which templates fail.
- PageSpeed Insights shows the URL-level and origin-level CrUX distribution for the last 28 days.
- The CrUX API, which since 2025 also exposes the four LCP image sub-parts at p75. This is the fastest way to see which sub-part dominates without writing any code.
# Requires a CrUX API key (Google Cloud console). Metric names from
# https://developer.chrome.com/docs/crux/api
curl -s "https://chromeuxreport.googleapis.com/v1/records:queryRecord?key=$CRUX_KEY" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://www.example.com/",
"formFactor": "PHONE",
"metrics": [
"largest_contentful_paint",
"largest_contentful_paint_resource_type",
"largest_contentful_paint_image_time_to_first_byte",
"largest_contentful_paint_image_resource_load_delay",
"largest_contentful_paint_image_resource_load_duration",
"largest_contentful_paint_image_element_render_delay"
]
}' | jq '.record.metrics | to_entries[] | {metric: .key, p75: .value.percentiles.p75, fractions: .value.fractions}'
Two caveats from the CrUX methodology docs: the sub-parts are collected only for image LCPs on full page loads, and each one is its own 75th percentile, so the four numbers will not add up to the overall LCP p75. Read them as proportions, not as a sum. If largest_contentful_paint_resource_type says most of your LCPs are text, the image sub-parts describe a minority of loads and you should look at TTFB and render delay first.
If the URL lacks enough traffic for URL-level data, query with "origin" instead of "url".
Step 2: find the LCP element
In Chrome DevTools
Open the Performance panel. Before you record anything, the live metrics view shows your local LCP, the LCP element (hover it to highlight it on the page) and, if you enable field data, your CrUX numbers next to the local ones. It also suggests CPU and network throttling settings based on what your real users experience, which is far more honest than testing on an unthrottled M-series laptop.
Then record a page load (the reload button in the panel) and open the Insights tab in the sidebar. Two insights do most of the work:
- LCP breakdown splits the local LCP into the four sub-parts.
- LCP request discovery checks, for image LCPs, that the image is discoverable from the HTML or a preload, has
fetchpriority=high, and is not lazy-loaded.
Render-blocking requests, Document request latency and Improve image delivery map almost one-to-one onto the sub-parts below.
From the console, without tooling
Paste this into the console on any page and reload. The last entry printed is the final LCP candidate:
new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
console.log('LCP candidate', Math.round(entry.startTime), 'ms',
entry.element, entry.url || '(text node)');
}
}).observe({ type: 'largest-contentful-paint', buffered: true });
From real users, with the web-vitals attribution build
The console tells you what happens on your machine. To know what the LCP element is for real visitors (it often differs on mobile, where a heading can outrank a cropped hero image), ship the web-vitals attribution build. In version 6 the LCP attribution object gives you target, url, timeToFirstByte, resourceLoadDelay, resourceLoadDuration and elementRenderDelay:
// npm install web-vitals (6.2.3 at the time of writing)
import { onLCP } from 'web-vitals/attribution';
onLCP(({ name, value, rating, navigationType, attribution }) => {
const body = JSON.stringify({
name,
value: Math.round(value),
rating, // 'good' | 'needs-improvement' | 'poor'
navigationType, // 'navigate', 'reload', 'back-forward-cache', ...
page: location.pathname,
element: attribution.target, // CSS selector of the LCP element
url: attribution.url, // undefined for text LCPs
ttfb: Math.round(attribution.timeToFirstByte),
loadDelay: Math.round(attribution.resourceLoadDelay),
loadDuration: Math.round(attribution.resourceLoadDuration),
renderDelay: Math.round(attribution.elementRenderDelay),
});
// sendBeacon survives page unload; fall back to keepalive fetch.
(navigator.sendBeacon && navigator.sendBeacon('/rum', body)) ||
fetch('/rum', { body, method: 'POST', keepalive: true });
});
Group the results by page template and element, then look at the median of each sub-part for the loads rated poor. That table tells you what to fix more reliably than any lab run. Version 6 also added soft-navigation support where the browser exposes it, which matters if you run a single-page app.
Step 3: read the four LCP sub-parts
Every LCP breaks down into four consecutive phases, as defined in web.dev's Optimize LCP guide:
| Sub-part | From → to | Rough share of a healthy LCP |
|---|---|---|
| Time to first byte (TTFB) | Navigation start → first byte of HTML | ~40% |
| Resource load delay | TTFB → browser starts fetching the LCP resource | < 10% |
| Resource load duration | Fetch start → fetch end of the LCP resource | ~40% |
| Element render delay | Resource loaded → element rendered | < 10% |
For a text LCP, both resource phases are zero and the whole budget is TTFB plus render delay. The percentages are guidelines from web.dev, not rules. What they tell you is useful, though: the two "delay" phases should be close to zero, and if either is large, you are wasting time rather than spending it on unavoidable network work.
How to fix LCP, one sub-part at a time
Fix a long resource load delay
This is the most common problem I see, and the cheapest to fix. The browser's preload scanner can only start fetching resources it finds in the HTML. If your LCP image is injected by JavaScript, referenced only from CSS, or lazy-loaded, it starts late.
The fixes, in order of impact:
- Never lazy-load the LCP image.
loading="lazy"on a hero image defers the request until layout confirms it is in the viewport. A lot of CMS themes and image components apply lazy loading to every image by default; check the rendered HTML, not your template. - Put the image in the HTML as a real
<img>withsrc/srcset, not as adata-srcthat a script swaps in. - Add
fetchpriority="high"so the request is not queued behind scripts and stylesheets. Use it on one or two images, not ten. - Preload what the scanner cannot see. If the LCP is a CSS background image or comes from a client-rendered component, preload it with a high priority.
- Serve the image from the same origin as the HTML, or at least preconnect to its origin, so the browser does not pay a fresh DNS, TCP and TLS setup first.
<!-- The LCP image: in the HTML, eager, high priority, responsive -->
<img
src="/img/hero-960.jpg"
srcset="/img/hero-480.avif 480w, /img/hero-960.avif 960w, /img/hero-1440.avif 1440w"
sizes="(max-width: 960px) 100vw, 960px"
width="960" height="480"
alt="Dashboard showing weekly revenue"
fetchpriority="high">
<!-- Below-the-fold and carousel images: lazy and low priority -->
<img src="/img/slide-3.webp" loading="lazy" fetchpriority="low" alt="">
When you cannot put the image in the markup, preload it in the <head> instead. For responsive images, use imagesrcset and imagesizes so the preload matches what the <img> will request; a mismatch downloads the image twice.
<link rel="preload" as="image" fetchpriority="high"
href="/img/hero-960.avif"
imagesrcset="/img/hero-480.avif 480w, /img/hero-960.avif 960w, /img/hero-1440.avif 1440w"
imagesizes="(max-width: 960px) 100vw, 960px"
type="image/avif">
A gotcha: with <picture> and multiple formats, the preload can only name one type. If you preload AVIF and a browser falls back to WebP, you wasted the preload. Since every current major browser supports AVIF, I usually serve AVIF in the srcset directly and keep <picture> only for art direction.
Fix a long resource load duration
Once the request starts early, the remaining cost is bytes and distance.
- Serve the right size. A 2,400-pixel JPEG scaled into a 390-pixel-wide phone viewport is the classic waste. Generate width variants and let
srcset/sizeschoose. - Use modern formats. AVIF and WebP are much smaller than JPEG at similar visual quality for photographic images.
- Use a CDN or an image CDN close to users, with long cache lifetimes on fingerprinted image URLs.
- Reduce contention. Twenty high-priority requests competing with the hero image (fonts, third-party scripts, preloads of things not needed yet) slow it down. Audit your
<link rel="preload">tags; most sites have stale ones.
This Node script with sharp produces AVIF, WebP and JPEG variants at fixed widths. I ran it with sharp 0.35.6 on Node 24:
// resize-hero.mjs — usage: node resize-hero.mjs hero.jpg out/
import sharp from 'sharp';
import { mkdir } from 'node:fs/promises';
import { basename, extname, join } from 'node:path';
const [src, outDir = 'out'] = process.argv.slice(2);
const widths = [480, 960, 1440, 1920];
const name = basename(src, extname(src));
await mkdir(outDir, { recursive: true });
for (const w of widths) {
const base = sharp(src).resize({ width: w, withoutEnlargement: true });
await base.clone().avif({ quality: 50 }).toFile(join(outDir, `${name}-${w}.avif`));
await base.clone().webp({ quality: 75 }).toFile(join(outDir, `${name}-${w}.webp`));
await base.clone().jpeg({ quality: 78, mozjpeg: true }).toFile(join(outDir, `${name}-${w}.jpg`));
}
console.log(`wrote ${widths.length * 3} files to ${outDir}`);
Tune the quality numbers by eye on your own images; there is no universal right value. For one-off conversions without a build step, the image converter on this site handles JPEG, PNG and WebP in the browser.
If the LCP element is text in a web font, the "resource" is effectively the font. Use font-display: swap or optional so text renders in a fallback font instead of waiting, and preload only the one font file used above the fold.
Fix a long element render delay
The image has arrived, but the browser cannot paint it yet. Usual causes:
- Render-blocking CSS. The browser will not render anything until stylesheets in the
<head>are downloaded and parsed. Keep critical CSS small, inline it only if it is genuinely small, and minify everything. Unused CSS from a framework is common; a CSS minifier removes whitespace but not unused rules, so also prune with your bundler. - Synchronous scripts in the
<head>. A<script src>withoutdeferorasyncblocks parsing. Usedefer(ortype="module", which defers by default). - Client-side rendering. If the LCP element only exists after your JavaScript bundle downloads, parses and runs, render delay can be seconds on mid-range phones. Server-side rendering or static generation puts the element in the HTML. This is the strongest argument for SSR or SSG on content pages, and it is a recurring theme in the Astro vs Next.js comparison.
- Long main-thread tasks during load, from hydration or third-party tags, delay the rendering update. The techniques that fix them overlap heavily with fixing INP: break up long tasks and yield to the main thread.
- A/B testing and anti-flicker snippets that hide the page (
opacity: 0on<body>) until an experiment loads. These can add their full timeout to LCP. Run experiments server-side where you can.
<head>
<!-- Small critical CSS can be inlined; the rest loads normally -->
<link rel="stylesheet" href="/css/main.4f9c1a.css">
<!-- Don't: <script src="/js/app.js"></script> blocks parsing -->
<script src="/js/app.4f9c1a.js" defer></script>
</head>
Fix a slow time to first byte
web.dev treats a TTFB of 0.8 seconds or less as good. If yours is well above that at p75, nothing in the front end can rescue LCP. Measure it from a few locations first:
# Repeat 5 times; time_starttransfer is TTFB as curl sees it (includes DNS, TCP, TLS)
for i in 1 2 3 4 5; do
curl -o /dev/null -s -w 'dns=%{time_namelookup} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n' \
-H 'Accept-Encoding: gzip, br' https://www.example.com/
done
The fixes are mostly infrastructure:
- Cache HTML at the edge. Most content pages can be served from a CDN with a short TTL plus
stale-while-revalidate. If your CDN cannot cache HTML because of cookies or unique query parameters (tracking parameters are a common culprit), fix the cache key. The Cloudflare Workers vs Vercel comparison covers how each edge platform handles this. - Remove redirect chains.
http→https→www→ trailing slash can add several round trips before the first byte, especially from ad and email links. - Profile the origin. Emit a
Server-Timingheader (Server-Timing: db;dur=212, render;dur=95) so slow database queries show up in DevTools and in thenavigationEntry.serverTimingfield of the web-vitals attribution object. - Make repeat and next-page navigations instant. Pages restored from the back/forward cache, and pages prerendered with the Speculation Rules API, render almost immediately. Check that
Cache-Control: no-storeorunloadhandlers are not blocking bfcache.
Lab vs field: why your Lighthouse score and CrUX disagree
This confuses almost every team I work with. A 98 in Lighthouse and a failing CrUX LCP are not contradictory:
| Lab (Lighthouse, DevTools) | Field (CrUX, RUM) | |
|---|---|---|
| Who | One simulated device and network | Real Chrome users over 28 days |
| Cache | Cold, every time | Mix of cold and warm |
| LCP element | What your test viewport shows | What each user's viewport shows |
| Includes | Only the URL you test | Redirects, ad clicks, slow regions, bfcache restores |
| Good for | Debugging and regression testing | Deciding whether you have a problem |
Field data wins every disagreement. Use the lab to reproduce what field data tells you, ideally with the throttling settings DevTools derives from your CrUX data. And remember that CrUX moves slowly: after you ship a fix, the 28-day window needs weeks to fully reflect it. Your own RUM data from the attribution snippet will show the change within days.
A quick triage checklist
When an LCP ticket lands, I go through these in order and usually find the cause within the first four:
- Is the LCP element the same on mobile and desktop? (Check RUM
elementby form factor.) - Does the LCP image have
loading="lazy"? Remove it. - Is it in the initial HTML? If not, render it server-side or preload it.
- Does it have
fetchpriority="high"? - Is the image larger than its displayed size on mobile? Add
srcset/sizesand AVIF. - Is TTFB above 800 ms at p75? Cache HTML at the edge and remove redirects.
- Are there synchronous scripts or large stylesheets in the
<head>? - Is a client-side framework or anti-flicker snippet delaying the first render?
Frequently Asked Questions
What is a good LCP score?
2.5 seconds or less at the 75th percentile of page loads, measured separately for mobile and desktop. Between 2.5 and 4 seconds needs improvement, and above 4 seconds is poor. Passing means at least 75% of visits load the main content within 2.5 seconds.
Why is my LCP fine in Lighthouse but failing in Search Console?
Search Console uses CrUX field data from real Chrome users, which includes slow phones, slow networks, redirects and regions far from your server. Lighthouse runs one simulated load. Check the CrUX sub-parts or your own RUM data to see which phase is slow for real users.
Should I preload the LCP image?
Only if the browser cannot discover it from the HTML. An <img> in the markup with fetchpriority="high" is already found by the preload scanner; preloading it again adds nothing. Preload when the image is a CSS background or is rendered by JavaScript, and make sure the preload's imagesrcset matches the image.
Does lazy loading hurt LCP?
Lazy loading the LCP image does, because the request waits for layout. Lazy loading images below the fold helps LCP indirectly by reducing bandwidth contention. The rule is simple: eager and high priority for the hero, lazy for everything off-screen.
Can text be the LCP element?
Yes. Headings and paragraphs are often the LCP element on mobile, where a wide hero image is cropped. For text LCPs the resource phases are zero, so the fixes are TTFB, render-blocking CSS and JavaScript, and web font loading with font-display: swap or optional.
How long until Search Console shows the improvement?
CrUX aggregates a rolling 28-day window, so an improvement shows up gradually over about four weeks. Search Console's report can lag a little behind that. Use your own RUM data to confirm the fix worked within a few days.
Conclusion
Fixing LCP is mostly diagnosis. Find the real LCP element from field data, split it into TTFB, load delay, load duration and render delay, and work on the biggest one. In practice the order is: remove lazy loading and add fetchpriority="high" to the hero image, make sure it is in the HTML, serve correctly sized AVIF from a CDN, get render-blocking scripts out of the <head>, and cache HTML at the edge. Ship the web-vitals attribution snippet first, so you can prove each change moved the p75 and not just your Lighthouse score.