Course contentsShow
← Web Development
Lesson 1903 of 2,98235. Web Performance FundamentalsFree lesson

Largest Contentful Paint (LCP)

When the largest visible content element renders, measuring perceived load speed (target: <2.5s).

Largest Contentful Paint (LCP)

What you'll learn: How LCP measures when your page's main content becomes visible to users, and why keeping it under 2.5 seconds matters for perceived load speed.

What LCP Measures

While First Contentful Paint (FCP) tells you when anything first appears, Largest Contentful Paint (LCP) tracks when the biggest, most meaningful content element in the viewport finishes rendering. This is typically your hero image, main headline, or primary content block—whatever dominates the visible screen.

Think of it like waiting for a movie poster to load: FCP is when the border appears, but LCP is when the actual poster image fills in. That's when users feel like "something substantial is here."

The 2.5 Second Target

Google defines good LCP performance as:

  • Good: 0–2.5 seconds
  • Needs Improvement: 2.5–4.0 seconds
  • Poor: Above 4.0 seconds

This threshold exists because research shows users perceive pages as "fast" when main content appears within 2.5 seconds. Beyond that, abandonment rates climb sharply.

Why LCP Matters for Perceived Speed

LCP directly reflects what users experience as "loaded." A page might technically finish loading in 6 seconds, but if the hero content appears at 2 seconds, users feel satisfied much sooner. Conversely, a blank screen for 4 seconds followed by instant content completion still feels painfully slow.

LCP captures this perception gap. It's not about technical completion—it's about when users can see and engage with your primary content.

Measurement Window

LCP stops measuring when the user first interacts with the page (clicks, scrolls, or taps). This prevents late-loading content from unfairly penalizing your score after users have already engaged.

Key Takeaway: LCP measures when your largest visible content element renders, targeting under 2.5 seconds to ensure users perceive your page as fast-loading—focusing on meaningful content delivery rather than technical completion.