This guide answers: how to improve largest contentful paint on a slow page
How to improve Largest Contentful Paint on a slow page
Improve LCP on a slow page: find the LCP element, cut server response time first, then fix images, CSS and JavaScript to reach 2.5 seconds or less.
By Hannah Wells, Technical SEO, site performance and online stores
· 7 min read
updated

Short answer
To improve Largest Contentful Paint on a slow page, start by finding which element is the LCP, then check how long the server takes to answer, and only then work on the image, the CSS and the JavaScript. On slow pages, the wait before the first byte arrives usually matters more than the image itself.
Key points
- Largest Contentful Paint, or LCP, is a Core Web Vital.
- You cannot fix what you have not located. Open PageSpeed Insights and run your URL.
- Time to First Byte is the delay between the browser requesting the page and receiving the first byte of the response.
- Once the server answers reasonably, look at the image.
What Largest Contentful Paint measures and why slow pages fail it
Largest Contentful Paint, or LCP, is a Core Web Vital. It measures how long the largest content element visible in the viewport takes to render completely. That element is typically a hero image, a main heading or a key block of text.
The thresholds are simple, and they apply at the 75th percentile of visits, measured separately for mobile and desktop:
- Good: 2.5 seconds or less.
- Needs improvement: between 2.5 and 4 seconds.
- Poor: more than 4 seconds.
The 75th percentile matters. Your page is judged on the experience of the slower visitors, not on the quick test you ran from a fast connection. A page can feel fine on your own laptop and still fail the threshold.
Speed also affects business results. According to Core Web Vitals documentation, a delay of one second in LCP is associated with 12% fewer conversions, and sites that meet the Core Web Vitals benchmarks see 70% lower bounce rates. Treat these as reported figures, not promises. Nothing guarantees that the same effect will appear on your own site.
Why do slow pages fail? Many people assume the image is too heavy. The data says otherwise. On mobile, across 67.5% of sites whose LCP element is an image, Time to First Byte (TTFB) is the largest contributor to LCP. Image download time accounts for only 2.1%. A slow host combined with a slow network creates a bottleneck before the browser has even received the page.
Identifying your LCP element and your baseline
You cannot fix what you have not located. Open PageSpeed Insights and run your URL. The report shows field data from the Chrome User Experience Report (CrUX) when enough real visits exist, plus a lab test run with Lighthouse.
Then go to the Diagnostics panel and click “Largest Contentful Paint element”. The report points to the exact HTML node. It may be a hero image, a heading or a paragraph. That answer decides everything that follows, because an image problem and a text problem have different fixes.
Next, define what “slow” means for your page in operational terms. Three symptoms are worth separating:
- A high TTFB: the browser waits a long time for the HTML to arrive.
- A heavy image file: the download itself takes long.
- A late image request: the browser discovers the image late and starts fetching it after other work.
Write down which one dominates. Given the figures above, the first symptom is the most likely culprit on slow infrastructure. Keep the baseline numbers from this first test. You will need them to judge whether later changes helped.
Priority fixes when TTFB drives your LCP
Time to First Byte is the delay between the browser requesting the page and receiving the first byte of the response. Server response time and network latency are the biggest factors. Until that first byte arrives, nothing can be painted, so every other optimization starts from a delayed position.
Start with what you can check:
- Add server-side caching, so the server does not rebuild the same page for every visit.
- Consider a CDN, which serves content from a location closer to the visitor. Any provider can fill that role; this page does not prescribe one.
- Read your server logs to spot slow processing on the requests that build the page.
Be honest about the limits. If your site sits on shared hosting, much of the server response may be outside your control. In that case, caching is the lever you may still have, and the hosting plan itself may be the real constraint.
Optimizing the LCP image itself
Once the server answers reasonably, look at the image. Four techniques apply to an LCP image:
- Preload it in the document head, so the browser knows about it early.
- Add the fetchpriority attribute with the value “high”, which signals the highest priority to the browser.
- Compress it with a modern format such as AVIF or WebP.
- Check the actual file size instead of assuming it is small.
One mistake is common: lazy-loading the LCP image. Lazy-loading delays an image until it is needed, which is useful for images below the fold. An image that is the largest element in the viewport is needed at once, so deferring it works against you. Reserve lazy-loading for what the visitor cannot see yet.
To measure file size, open Chrome DevTools, go to the Network tab, reload the page and find the image in the list. Compare its size before and after compression. If the LCP element is a heading or a text block, skip this section: no image work will change it, and the fixes below matter more.
Removing CSS and deferring JavaScript
CSS and JavaScript can block rendering. While the browser downloads and processes them, the largest element may wait to appear. The principle is plain: do not load what you do not render.
For CSS, find what is unused. In Chrome DevTools, the Coverage tab shows how much of each stylesheet the page actually applies. Remove unused rules from the rendering path, and inline only the critical CSS needed for what appears at the top of the page.
For JavaScript, apply the same logic. Inline or embed only the critical code in the HTML, and defer the remaining scripts until after LCP completes. A script that adds a feature lower on the page has no reason to compete with your hero element.
Measuring and iterating
PageSpeed Insights gives two kinds of data, and they answer different questions. Field data from CrUX comes from real users and reflects the 75th percentile. Lab data from Lighthouse is a synthetic test run under fixed conditions. Lab data is useful for checking a change right away. Field data tells you whether real visitors noticed it, and it takes time to move.
After each change, test again and compare with your baseline. Change one thing at a time, so you know which change produced which result.
Which tool for which job
The sources mention several tools that report LCP. This is how they fit together, without ranking them. No price information appears in the sources used here, so none is given.
| Tool | What it gives you | Best suited to |
|---|---|---|
| PageSpeed Insights | CrUX field data when available, plus a Lighthouse lab test and the LCP element in Diagnostics | A first diagnosis, for any profile |
| Chrome DevTools Lighthouse tab | Lab audit run in your own browser | Developers testing changes while they work |
| WebPageTest | Deeper waterfall analysis of what loads and when | Finding a late image request or a blocking resource |
| GTmetrix | LCP insights and waterfall views | Repeat checks and comparisons over time |
Which fix first, by profile
- If you own a site on shared hosting: start with caching and a hard look at TTFB. The hosting itself may limit what you can do.
- If you are a developer with full control: confirm the LCP element, then work through the preload, fetchpriority and format changes, and finish with the CSS and JavaScript cleanup.
- If you are an SEO professional auditing someone else’s page: run PageSpeed Insights, identify the element, note whether TTFB or the image dominates, and report that before proposing fixes.
- If your LCP element is text: skip the image techniques and focus on TTFB, CSS and JavaScript.
What this page cannot tell you
Some questions have no reliable answer in the documentation used here, so no figure is offered for them:
- There are no benchmark targets by site type. Nothing here says what an online shop or a news site should aim for beyond the general thresholds above.
- The current weight of LCP in Google’s ranking systems is unknown. Core Web Vitals matter, but the precise weight, and whether it has changed recently, is not established. Fixing LCP is no promise of better rankings.
- Time savings per technique are not documented. How much preloading or fetchpriority saves on your page can only be found by testing it.
- Gains from specific third-party services or CDN providers depend on each case and are not covered here.
- The cost of improving mobile versus desktop LCP is not quantified in the sources.
The practical answer is to measure your own page before and after every change.
Sources
Core Web Vitals, Largest Contentful Paint: fix and identify (corewebvitals.io), consulted 03/12/2026. DebugBear documentation, Largest Contentful Paint metric (debugbear.com), consulted 03/12/2026.


