Table of contents
Largest Contentful Paint (LCP) is the time from the start of a page visit until the largest image, text block or video on the visible screen is drawn. In Google's study of visits where the LCP element was an image, most websites with a poor LCP spent less than 10% of their LCP time downloading that image.
This guide covers what LCP is, good LCP scores, how to measure LCP, what makes LCP slow, and how to fix LCP on WordPress and JavaScript sites.
What is Largest Contentful Paint (LCP)?
LCP is a loading speed metric that records when the biggest visible piece of content on a page appears. LCP is 1 of Google's 3 Core Web Vitals, the metrics Google uses to describe real page experience.
The LCP clock starts when a visitor begins opening the page, so redirects, connection time and server wait all count. The browser stops recording new LCP elements once the visitor taps, scrolls or presses a key.[1]
I run technical, on-page and programmatic SEO (pages built from templates and data) across SaaS (software as a service) websites. For LCP, my first question is which element the browser timed, because the fix for a photo differs from the fix for a heading.
Which page elements count for LCP?
Browsers consider 5 kinds of content for LCP:
- Images are standard HTML
imgelements, such as a hero photo or a product picture. - Vector images are
imageelements placed inside an SVG (scalable vector graphics, a drawing written in code). - Videos count through the poster image or the first frame, whichever appears earlier.
- CSS background images count when the stylesheet loads the picture with
url(), while a CSS gradient does not count. - Text blocks are paragraphs, headings and other block elements that hold text.
Chrome skips invisible elements, low-detail placeholder images and elements that cover the full screen like a background. A full-screen hero photo can therefore leave a smaller heading as the LCP element.
How does web.dev define LCP?
The Largest Contentful Paint definition (web.dev, Google's site for web developers) is "the render time of the largest image, text block, or video visible in the viewport". The viewport is the part of a page a visitor sees without scrolling.
What is a good LCP score?
A good LCP score is 2.5 seconds or less for at least 75% of visits, measured separately on mobile and desktop. Google sorts LCP times into 3 bands.[2]
- Good: The LCP time is 2.5 seconds or less.
- Needs improvement: The LCP time is above 2.5 seconds and up to 4 seconds.
- Poor: The LCP time is above 4 seconds.
Lighthouse, Google's page testing tool, uses stricter bands for desktop tests: green ends at 1.2 seconds and red begins above 2.4 seconds.[3] A desktop page with a 2-second LCP can look orange in Lighthouse and still be good in Search Console.
How do you measure LCP?
You measure LCP with field data first and lab data second. Field data comes from real visitors, and lab data comes from a test run on one device.
Here are the steps to measure LCP for one page in PageSpeed Insights:
- Enter the page address in PageSpeed Insights and run the report.
- Read the LCP time under "Discover what your real users are experiencing", which covers the previous 28 days.
- Check that the data is for "This URL" and not for the whole "Origin" (every page on the website).
- Switch between mobile and desktop, and note the slower LCP time.
- Scroll to "Diagnose performance issues" and find the LCP element and its timing parts.
Here are the steps to measure LCP for a whole site in Google Search Console:
- Open the Core Web Vitals report in Google Search Console.
- Click "Open report" next to the mobile chart.
- Click an LCP row in the table "Why URLs aren't considered good".
- Click a page address in the "Examples" table to see its group of similar pages.
Search Console groups similar pages and assumes each group shares a framework and the same causes.[4] I do full-site SEO audits, so I judge LCP by page template: one template fix can help every page in the group, a useful rule for programmatic SEO pages.
To run Lighthouse on your own computer, install Node.js (a tool that runs JavaScript outside a browser) and use the command below with your page address.
npx lighthouse https://princedewani.online/ --only-categories=performance --output=json --output-path=lcp.jsonI ran Lighthouse 13.4 once on my own homepage in mobile mode, and the report gave an LCP of 3.6 seconds with a warning about the test computer's CPU (processor) speed. One lab run can vary, so I read the LCP element and the timing parts before the seconds.
The LCP element on my homepage was the main heading, and Lighthouse listed only time to first byte and element render delay. A text heading has no image file to load, so compressing pictures would not be the first fix for that report.
What causes a slow LCP?
A slow LCP comes from delay in one or more of 4 timing parts, which add up to the full LCP time.[5] The slowest part tells you which fix to make first.
- Time to first byte (TTFB) is the wait until the browser receives the first piece of the page's HTML (the page code). Redirects, distance from the server and pages that skip the cache make TTFB slow.
- Resource load delay is the wait between TTFB and the start of the LCP image or font download. Lazy loading, CSS background images and images added by JavaScript make resource load delay longer.
- Resource load duration is the time the LCP image or font takes to download. Large files and too many downloads at the same time make resource load duration longer.
- Element render delay is the wait between the end of the download and the moment the element appears. Large stylesheets, scripts in the page head and code that hides content make element render delay longer.
The median site with a poor LCP waits 1.3 seconds after TTFB before requesting its LCP image, almost 4 times as long as the download itself.[6] At least half of the sites with a poor LCP have a TTFB at or above 2,270 milliseconds.
How do you fix Largest Contentful Paint?
Largest Contentful Paint optimization means shortening the slowest timing part, then measuring again. On a well-optimized page, TTFB and resource load duration take about 40% of LCP each, and each delay part takes less than 10%.
Here are the steps to fix LCP on any website:
- Find the LCP element on mobile and on desktop, because the 2 layouts can have different elements.
- Put the LCP image in the first HTML as an
imgelement with asrcaddress. - Remove
loading="lazy"from the LCP image. - Add
fetchpriority="high"to the LCP image, and to no more than 2 images on the page. - Preload a CSS background image or web font when the LCP element needs one.
- Remove unused CSS, and add
deferorasyncto scripts in the page head. - Compress the LCP image, save the image as WebP or AVIF (2 modern image formats), and serve the size the screen needs.
- Cache the HTML on a CDN (content delivery network, servers placed near visitors) and remove extra redirects.
- Test the page again, and confirm the result in field data after 28 days.
The priority hint for a hero image looks like the example below.
<img src="/hero.webp" fetchpriority="high" width="1200" height="630" alt="Product dashboard">A smaller image does not always lower LCP. When JavaScript hides the hero until a script finishes, the time saved on the download moves into element render delay.
How do you improve Largest Contentful Paint in WordPress?
You improve LCP in WordPress by caching pages, checking which image WordPress prioritizes, and removing heavy plugin or theme code. I have used WordPress, and I would check the theme template before any single post.
WordPress 6.3 and later add a high fetch priority to the likely LCP image, a change WordPress says typically improves LCP by 5% to 10%.[7] The automatic choice is a prediction, so compare the choice with the LCP element in PageSpeed Insights.
Here are the steps to improve LCP on a WordPress site:
- Update WordPress to the current version.
- Turn on page caching through your host or a caching plugin to shorten TTFB.
- Find the LCP element in PageSpeed Insights for the home, post and product templates.
- Exclude the LCP image from any plugin setting that lazy-loads images.
- Replace a hero slider or CSS background hero with one image block.
- Deactivate plugins that load CSS or scripts your page does not use, one at a time, on a staging (test) copy.
- Retest each template after every change.
Image Prioritizer is a beta plugin from the WordPress Performance Team that preloads LCP images by screen size, including CSS backgrounds. Image Prioritizer needs WordPress 6.9, the Optimization Detective plugin, and real mobile and desktop visits before the plugin changes a page.[8]
How do you improve LCP on JavaScript sites?
You improve LCP on a JavaScript site by sending the main heading and image in the first HTML, so the browser does not wait for scripts. Client-side rendering, where the browser builds the page with JavaScript, delays discovery and drawing of the LCP element.
- Prerendering builds the full HTML before anyone visits, and web.dev calls prerendering the better choice when your site can use it.
- Server-side rendering builds the full HTML on the server for each request, at the cost of a slower TTFB.
- Long tasks are scripts that keep the browser busy, so split large scripts and load only the code the page needs.
- A/B testing scripts can hide the page until a variant is chosen, so keep the LCP element out of the hidden area.
- Image components can lazy-load pictures by default, so turn lazy loading off for the hero image.
In Next.js, a React framework, the image component lazy-loads by default. Next.js 16 deprecated the priority property, and its docs now offer preload for a known LCP image.[9]
The Next.js docs advise against preload when several images could be the LCP element on different screens. For most hero images, the Next.js docs suggest loading="eager", with fetchPriority="high" to raise the image's priority.
Where should you start with Largest Contentful Paint?
Start with Largest Contentful Paint by opening PageSpeed Insights for your most visited landing page and writing down the LCP element and the slowest timing part. If JavaScript adds the element, use View Rendered Source, a pick in my guide to SEO Chrome extensions, to compare the raw HTML with the finished page.
I write scripts that keep production sitemaps updated automatically, and LCP deserves the same routine. Schedule a monthly check of one page per template, because a new hero, font or plugin can undo the fix.
Google says its ranking systems use Core Web Vitals, and that good scores do not guarantee a top position.[10] Stop tuning LCP once 75% of visits load in 2.5 seconds or less, and move that time to your content.
Resources and References Used for Research
- [1] Largest Contentful Paint (LCP) - web.dev (Sep 2025)
- [2] About PageSpeed Insights - Google for Developers (2026)
- [3] Largest Contentful Paint - Chrome for Developers (Jan 2020)
- [4] Core Web Vitals report - Google Search Console Help (2026)
- [5] Optimize Largest Contentful Paint - web.dev (Mar 2025)
- [6] Common misconceptions about how to optimize LCP - web.dev (Aug 2024)
- [7] Image performance enhancements in WordPress 6.3 - Make WordPress Core (Jul 2023)
- [8] Image Prioritizer - WordPress.org (2026)
- [9] Image Component - Next.js (2026)
- [10] Understanding page experience in Google Search results - Google Search Central (Sep 2026)
Largest Contentful Paint FAQs
How do you improve Largest Contentful Paint?
You improve Largest Contentful Paint by finding the page's LCP element, then shortening the slowest of its 4 timing parts. Make the LCP image visible in the first HTML, give the image high fetch priority, and never lazy-load the image. Cut the stylesheets and scripts that hold back drawing, and cache pages so the server answers faster.
How do you fix Largest Contentful Paint when the element is text?
A text LCP element has no image to compress, so fix the server response and the render delay. Cache the HTML, remove redirects, shrink render-blocking stylesheets and postpone scripts in the page head. If the text needs a web font, preload the font and set the CSS font-display property to swap so the words appear while the font loads.
Is Largest Contentful Paint a Google ranking factor?
Yes, LCP is one of the 3 Core Web Vitals, and Google says its ranking systems use Core Web Vitals. A good LCP score does not guarantee a top position, because Google looks at many signals beyond Core Web Vitals. Treat a poor LCP as a problem for visitors first and a search problem second.
Does WordPress improve Largest Contentful Paint automatically?
Yes, WordPress 6.3 and later add a high fetch priority to the image WordPress judges most likely to be the LCP element. The automatic choice is a prediction, so WordPress can pick an image that is not the real LCP element. Check the LCP element in PageSpeed Insights on mobile and desktop before you rely on the automatic choice.
What is the difference between LCP and FCP?
FCP (First Contentful Paint) is the moment any text or image first appears, and LCP is the moment the largest visible element appears. A page header can trigger FCP while the hero image is still loading. A long gap between FCP and LCP can mean the main image or text is found late or waits for JavaScript.
Why is my LCP different in Lighthouse and Search Console?
Lighthouse loads a page once on a simulated device, while Search Console reports visits by real Chrome users. Real visitors bring different phones, networks, locations and redirects to the same page. When Lighthouse and the real-visitor data disagree, trust the real-visitor data for the score and use Lighthouse to find the cause of the delay.


