In this article · 10 sections
Largest Contentful Paint (LCP) measures when the largest visible element (usually the hero image, a banner or the main headline) finishes rendering. A "Good" LCP is 2.5 seconds or less for real users. Here's a step-by-step plan to improve Largest Contentful Paint.
Step 1: Identify your LCP element
PageSpeed Insights shows the LCP element under diagnostics. Common ones: - Hero image or background image - Large heading text - Product image on product pages - Featured image on blog posts
Step 2: Understand the four parts of LCP
- Time to First Byte: server response
- Resource load delay: how long before the browser starts loading the LCP image
- Resource load time: downloading the image
- Render delay: time until it's actually painted
Fix the biggest part first.
Fix 1: Faster server response
Caching, PHP version, database queries and hosting. See reduce TTFB.
Fix 2: Discover the image early
- Use an
<img>in the HTML, not a CSS background added later - Don't lazy-load the LCP image
- Add
fetchpriority="high":
<img src="/images/hero.webp" width="1200" height="675" alt="..." fetchpriority="high">
- If the image must be a CSS background, preload it:
<link rel="preload" as="image" href="/images/hero.webp" fetchpriority="high">
Fix 3: Make the image smaller
- WebP/AVIF, compressed
- Correct dimensions with
srcsetfor mobile. See responsive images - Serve from a CDN. See what is a CDN
Fix 4: Remove render delay
- Minimise render-blocking CSS/JS. See eliminate render-blocking resources
- Avoid hero content hidden by JavaScript until animations run (fade-ins on the hero can delay LCP)
- Avoid sliders where the first slide waits for scripts
Fix 5: Text LCP
If the LCP element is text, make sure fonts don't block it: font-display: swap, preload the heading font. See web fonts and speed.
Mobile first
Mobile LCP is usually worse. Consider a smaller or simpler hero image on mobile, or a text-first hero. See hero section design.
Verify
Re-test in PageSpeed Insights; check field data in Search Console over the following weeks.
FAQs
Is a slider bad for LCP?
Often, yes: heavy scripts and multiple large images delay the first slide. A static hero is usually faster.
Does a CDN alone fix LCP?
It helps image delivery, but server response, render-blocking resources and image priority matter too.
Joboo Web optimises hero sections for fast LCP on every site we build. Get a speed review.
Was this article helpful?
Your answer helps us improve our guides