Orofold Labs

Launching soon

Notes Get in touch

Performance and accessibility 4 min read Updated

Fixing Largest Contentful Paint one delay at a time

In short

Split the LCP delay into four parts, then fix the largest one first instead of guessing at image tweaks.

“Make LCP faster” is advice you cannot act on. Largest Contentful Paint (LCP) measures how long the largest visible element in the first view takes to render, and that delay has four different causes. Each one is fixed in its own way. Find the one that dominates, and start there.

Start with the target

Google’s guidance asks for an LCP of 2.5 seconds or less on at least 75% of page visits. Up to 2.5 seconds is good, above 4.0 seconds is poor, and anything in between needs improvement. Before you fix anything, measure the same template on several pages. One slow product page may have causes that a category page does not share.

The delay in four parts

The guidance splits LCP into four parts:

  1. Time to First Byte (TTFB): the time until the first byte of the HTML document arrives.
  2. Resource load delay: the time from the first byte until the LCP resource starts to download.
  3. Resource load duration: the time spent downloading the LCP resource, typically an image.
  4. Element render delay: the time from finishing the download to fully rendering the element.

The guidance gives rough figures of 40% for TTFB, under 10% for resource load delay, about 40% for load duration and under 10% for render delay. These are not fixed budgets. Their main use is comparison: when one part is far larger than the others, start there.

Fix a slow first byte

A high TTFB makes a 2.5-second LCP hard to reach, and sometimes impossible. The guidance names the usual causes: several server redirects before the final page, visitors far from the server, poor network conditions, and query parameters that stop cached copies from being used. Follow a fixed order: remove redirect chains first, make sure the page can be cached, and confirm that tracking parameters do not force a new response on every request.

Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea

The image must be found straight away

When the LCP element is an image, the browser has to discover it before it can download it. Four rules help:

  • Add fetchpriority=“high” to the image most likely to be the LCP element. Setting it on more than one or two images makes it unhelpful.
  • If the image is referenced only in an external stylesheet or script, preload it in the HTML so that it starts downloading alongside that file.
  • Give the image width and height attributes. MDN explains that they let the browser work out the aspect ratio before the image loads.
  • Never lazy-load the LCP image. You would delay the very element that should appear first.

Code that blocks rendering

The image can be fully downloaded and the LCP element still fails to appear, because the browser is waiting for a large stylesheet. Inline critical CSS only when it is small. Otherwise, shrink the stylesheet: remove unused rules, defer what the first view does not need, and minify and compress the rest. Avoid synchronous scripts in the head. According to the guidance they are almost never needed there, and inline scripts should stay very small.

Step by step

Follow this order, and measure again after each change:

  1. Record the LCP value and the element the tool reports as the LCP element.
  2. Check TTFB. Fix redirects and cache misses before you touch images.
  3. Confirm that the LCP resource starts loading early. Add fetchpriority, or a preload if the image appears only in CSS.
  4. Remove lazy loading from the LCP image, and add its width and height.
  5. Reduce the render-blocking CSS and the synchronous scripts in the head.
  6. Compare the four parts again, and take the next largest.

Image size and format belong to the download step, and the article on responsive images that fit the screen and the layout covers them. Delays after the page has loaded are a separate problem, see Fixing Interaction to Next Paint, long tasks first. For the wider picture, read speed as part of design.

Common questions

Can the LCP image be lazy-loaded?
No. The Google guidance says never to lazy-load the LCP image, because lazy loading adds resource load delay to the element that should appear first.
How many images should get fetchpriority set to high?
Set it on the image most likely to be the LCP element. The guidance warns that setting it on more than one or two images makes it unhelpful.
What LCP value counts as good?
A value of 2.5 seconds or less is good, above 4.0 seconds is poor, and anything in between needs improvement. Sites should aim for this on at least 75% of page visits.

Sources

  1. Optimize Largest Contentful Paint, web.dev (Google). Accessed 24 November 2026
  2. img: The Image Embed element, MDN Web Docs (Mozilla). Accessed 24 November 2026

Further reading

Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea

All notes