Largest Contentful Paint (LCP) is a key Core Web Vitals metric that measures the time it takes to render the largest visible element on a page. Google has used LCP as a ranking factor since 2021 year, and in 2026 the requirements remain strict: a good score is no more than 2.5 seconds. This guide covers practical methods for optimizing LCP, from diagnosis to implementation.
What is LCP and why does it matter?
LCP records when the page's main content becomes visible to the user. This is usually a hero image, a large heading, or a block of text. The metric reflects perceived loading speed: users consider a site fast if its main content appears quickly.
LCP thresholds
| Rating | LCP time | SEO impact |
|---|---|---|
| Good | ≤ 2.5 sec | Positive signal |
| Needs improvement | 2.5 – 4 sec | Neutral |
| Poor | > 4 sec | Negative ranking factor |
Elements that can be the LCP element
- Images (img, picture, background-image in SVG)
- Video (poster image)
- Text blocks (headings, paragraphs)
You can check your site's LCP using the Web Vitals tool on reChecker. The analysis will show current values and suggest areas to optimize.
Diagnosing the causes of slow LCP
Before optimizing, you need to identify bottlenecks. The main causes of slow LCP are:
1. Slow server response (TTFB)
Time to First Byte is the time from the request to the first byte of the response. If the server takes longer than 600 ms to respond, LCP will inevitably suffer.
# Проверка TTFB через curl
curl -w "TTFB: %{time_starttransfer}s\n" -o /dev/null -s "https://example.com"2. JavaScript and CSS that block rendering
Resources in the head without async/defer attributes block HTML parsing and rendering. Critical CSS should be inlined or loaded with high priority.
3. Unoptimized images
Large files, lack of modern formats (WebP, AVIF), and loading without priority are common problems. Use the reChecker image checker to run an audit.
4. Slow font loading
Fonts block text rendering (FOIT — Flash of Invisible Text). If the LCP element is text, font delays directly worsen the metric.
5. Resource queueing
Browsers limit the number of simultaneous connections to a single domain (usually 6). If a critical resource is queued behind dozens of others, LCP takes longer.
Optimizing images for LCP
Images are the most common LCP element. Optimizing them has the greatest impact.
Modern formats
<picture>
<source srcset="hero.avif" type="image/avif">
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg" alt="Главное изображение" fetchpriority="high" width="1200" height="630">
</picture>AVIF provides 20–50% better compression than JPEG at the same quality. WebP is a versatile alternative supported by all modern browsers.
The fetchpriority attribute
Explicitly set a high priority for the LCP image:
<img src="hero.jpg" alt="Hero" fetchpriority="high" loading="eager">By default, browsers load images at low priority. fetchpriority="high" moves the LCP image to the front of the queue.
width and height attributes
Always specify dimensions. This prevents layout shift (CLS) and lets the browser reserve space before the image loads:
<img src="hero.jpg" alt="Hero" width="1200" height="630" fetchpriority="high">Preloading the LCP image
If the image is critical and near the start of the document:
<link rel="preload" as="image" href="/hero.avif" type="image/avif">Preload tells the browser to start loading the image before it discovers the img tag in the HTML.
Lazy loading for below-the-fold images
Use lazy loading for images below the first screen; they should not compete with the LCP element for bandwidth:
<img src="product.jpg" alt="Товар" loading="lazy" width="400" height="400">The LCP element should not have loading="lazy"; otherwise, the metric will include the delay until scrolling.
Optimizing the server response
CDN and caching
Serving static files from a CDN reduces RTT. Caching HTML and critical resources lowers TTFB on repeat visits.
# Nginx: кэш статики
location ~* \.(jpg|jpeg|png|webp|avif|css|js)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}HTTP/2 and HTTP/3
Multiplexing allows many resources to load in parallel over a single connection. Make sure the server supports HTTP/2.
Early completion (Early Hints)
HTTP 103 Early Hints lets the server send preload hints before the main response:
HTTP/1.1 103 Early Hints
Link: </critical.css>; rel=preload; as=style
Link: </hero.avif>; rel=preload; as=imageOptimizing the critical rendering path
Inline critical CSS
CSS needed to render above-the-fold content should be embedded in the HTML or loaded with high priority:
<head>
<style>
/* Критический CSS для hero-блока */
.hero { min-height: 100vh; }
.hero img { width: 100%; height: auto; }
</style>
<link rel="stylesheet" href="main.css" media="print" onload="this.media='all'">
</head>Defer loading of below-the-fold JavaScript
<script src="analytics.js" defer></script>
<script src="app.js" type="module"></script>Modules (type="module") are deferred by default. Use defer for regular scripts.
Remove render-blocking scripts from the head
Third-party widgets (chats, analytics) often block rendering. Load them after LCP:
window.addEventListener('load', () => {
const script = document.createElement('script');
script.src = 'https://widget.example.com/chat.js';
document.body.appendChild(script);
});Optimizing fonts
Fonts are critical if the LCP element is text.
font-display: swap
@font-face {
font-family: 'CustomFont';
src: url('/fonts/custom.woff2') format('woff2');
font-display: swap;
}font-display: swap displays text immediately in a system font, then replaces it with the custom font. Avoid font-display: block — it blocks rendering for up to 3 seconds.
Preload the critical font
<link rel="preload" href="/fonts/main.woff2" as="font" type="font/woff2" crossorigin>Character subsets
If you use only Cyrillic and Latin characters, generate a font subset; the file will be 2–3 times smaller.
LCP optimization checklist
| Action | Priority | Difficulty |
|---|---|---|
| Optimize the LCP image (format, size) | High | Low |
| Add fetchpriority="high" to the LCP element | High | Low |
| Specify width/height for images | High | Low |
| Configure preload for critical resources | High | Medium |
| Enable CDN and caching | High | Medium |
| Inline critical CSS | Medium | Medium |
| Defer below-the-fold JavaScript | Medium | Medium |
| Optimize fonts (swap, preload) | Medium | Low |
| Reduce TTFB (server, database) | High | High |
Monitoring and validation
After implementing changes, check the results:
- PageSpeed Insights — lab and field data
- Chrome DevTools — Performance tab, LCP marker
- Web Vitals on reChecker — quick check without installing tools
Field data (CrUX) is updated with a delay of 28 days. Lab tests show the effect immediately, but may differ from real user conditions.
Considerations by content type
E-commerce: product cards
The LCP element is usually the product image. Optimize it by preloading the first image, setting fetchpriority="high", and using modern formats. Avoid lazy loading the main image.
Blogs and articles
The LCP element is the hero image or a large heading. For hero images, use the same techniques as for other images. For headings, use critical CSS for fonts, preload fonts, and minimize blocking CSS.
Landing pages
Often there is just one screen and one large element. LCP is critical. Optimize as much as possible: inline critical CSS, preload all critical resources, and minimize JavaScript.
Measurement tools
Chrome DevTools
Performance → record a page load → LCP marker. Shows the element and its timing. Use Network to check resource loading priorities.
PageSpeed Insights
Lab and field data. Field data (CrUX) comes from real users. Lab data comes from a simulated environment. Both are important.
Web Vitals extension
Google's Chrome extension shows LCP, INP, and CLS in real time as you browse pages.
reChecker Web Vitals
The Web Vitals tool on reChecker checks metrics without installing tools. Enter a URL to get a report.
Frequently asked questions
Why did LCP get worse after an update?
Adding heavy scripts, new images, or blocking CSS can cause this. Check the Network waterfall to see which resource is delaying rendering.
Is it normal for LCP to differ on mobile and desktop?
Yes. Devices, network speeds, and screen sizes differ. Optimize for both, but prioritize mobile (mobile-first indexing).
Should I optimize LCP for every page?
Prioritize pages with traffic and conversions: the homepage, key products, and popular articles. Optimize the rest as time allows.
Related materials
For more on all Core Web Vitals metrics and how they relate to each other, read the complete Core Web Vitals guide 2026. For a comprehensive performance check, use the Web Vitals tool and image checker on reChecker.