Skip to the page

Core Web Vitals, exactly · core

LCP: what counts, the four subparts and the fixes

LCP is the render time of the largest image or text block visible in the viewport, and you fix it by splitting it into TTFB, resource load delay, resource load duration and element render delay, then attacking the biggest part.

The notes

What you must know

  • LCP candidates: <img>, <image> inside <svg>, <video> poster or first frame, an element with a CSS url() background image, and block elements with text. Not counted: opacity 0 elements, full-viewport backgrounds, low-entropy placeholders.
  • Size is the visible size in the viewport (clipped parts and margins do not count). The browser reports a new candidate each time a bigger element paints, and stops after the first tap, scroll or key press.
  • Four subparts: TTFB (about 40%), resource load delay (under 10%), resource load duration (about 40%), element render delay (under 10%). The two 'delay' parts should be close to zero.
  • Load delay is big when the image is not in the HTML: it is a CSS background, injected by JavaScript, or lazy-loaded. Fix: put an <img> in the server HTML, add fetchpriority="high", or preload it.
  • Never lazy-load the LCP image (loading="lazy" on the hero adds delay). Use fetchpriority="high" on one or two images at most.
  • Load duration: smaller bytes (AVIF/WebP, correct size via srcset), a CDN close to users, fewer competing downloads.
  • Render delay: render-blocking CSS and sync scripts, web fonts for a text LCP, client-side rendering that waits for JS, long main-thread tasks.
  • TTFB: server time, redirects, no CDN cache. SSR or static HTML with a CDN usually beats CSR for LCP.

The red pen

Common traps: mistake → fix

  • Mistake: "LCP is when the page finishes loading"

    Fix: it is when the largest visible content element is painted; the load event is unrelated.

  • Mistake: "Lazy-load every image for speed"

    Fix: lazy-loading the hero image delays LCP; lazy-load only below the fold.

  • Mistake: "Preload everything important"

    Fix: preloading many files makes them compete; preload only the late-discovered LCP resource.

  • Mistake: "LCP is always an image"

    Fix: on many pages (articles, dashboards) it is a text block, so web fonts and render-blocking CSS matter.

Easy to hard

Questions interviewers ask, easy to hard

  1. What is LCP? What can be an LCP element?
  2. Open a big e-commerce home page: what is the LCP element and how would you improve it?
  3. Explain the four LCP subparts and which fix targets which part.
  4. LCP got worse after you moved the banner into a React carousel. Why, and how do you fix it without removing the carousel?
  5. How do SSR, streaming and a CDN change each LCP subpart?

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview