Skip to content
Every tutorial here is 100% free — and always will be
LSLovableStudent

How do I improve LCP?

Last checked 31 Aug 2026

Short answer

Largest Contentful Paint is almost always slowed by an oversized hero image or a render-blocking resource — compress/preload the largest above-the-fold element and defer everything not needed for first paint.

What LCP measures

Largest Contentful Paint is the time until the biggest visible element (usually a hero image, banner, or heading block) finishes rendering. Google considers under 2.5 seconds good.

Find what your LCP element actually is

Chrome DevTools → Lighthouse or the Performance panel will name the specific element flagged as the LCP candidate — don't guess, check it.

Common fixes

  1. Compress and correctly size the LCP image. A 4000px-wide photo displayed at 800px wastes load time for nothing.
  2. Use modern formats (WebP/AVIF) instead of PNG/JPEG where supported.
  3. Preload the LCP image rather than lazy-loading it — lazy-loading the very element Lighthouse is timing works against you.
  4. Remove render-blocking CSS/JS that delays the whole page from starting to paint.
  5. Avoid client-side data fetching for above-the-fold content where possible — content that waits on an API call before it can render will always hurt LCP.

Prompting Lovable

Lighthouse flags LCP as poor, and names [element] as the LCP candidate. Compress and correctly size that image, make sure it isn't lazy-loaded, and remove any render-blocking resources before it.

What usually goes wrong

  • Lazy-loading the hero image along with every other image on the page — the LCP element specifically should load eagerly, not lazily.
  • Fixing image size but leaving the image at full original resolution with only CSS scaling it down — the browser still downloads the full file.
  • Ignoring font-loading delays, which can hold up text-based LCP elements just as much as images do.

See /questions/how-do-i-optimise-images and /questions/how-do-i-lazy-load-images for the image-specific detail.

Sources

Was this answer helpful?

Related questions

Website made, maintained and hosted by PromptSites.com

PromptSites logo