CDN & Performance

What is Largest Contentful Paint?

Also known as: LCP

Definition

Largest Contentful Paint (LCP) measures the time from page load until the largest visible element in the viewport is fully rendered, and is one of Google's three Core Web Vitals.

Largest Contentful Paint (LCP) is a user-centric performance metric that reports the render time of the largest image, text block, or video element visible within the initial viewport. It was introduced by Google in 2020 as part of the Core Web Vitals initiative to quantify perceived load speed. LCP replaces older metrics like load time and DOMContentLoaded because those do not reflect what the user actually sees.

LCP is calculated by the browser's PerformanceObserver API, which watches for all contentful paint events (text nodes, images, background images, and video posters) and records the render timestamp of the largest one. The metric stops reporting once the user interacts with the page (click, scroll, or keypress) or after the page has been fully loaded. A good LCP score is 2.5 seconds or faster; anything above 4.0 seconds is considered poor. Common causes of slow LCP include slow server response times, render-blocking JavaScript and CSS, slow resource load times, and client-side rendering delays.

In the performance optimization stack, LCP sits alongside First Input Delay (FID) and Cumulative Layout Shift (CLS) as one of the three Core Web Vitals. It is a key factor in Google's search ranking signals for mobile and desktop. Improving LCP typically involves optimizing the critical rendering path: preloading hero images, using a CDN, enabling compression, eliminating render-blocking resources, and implementing server-side rendering for JavaScript-heavy sites.

Key facts

  • LCP is one of Google's three Core Web Vitals, alongside FID and CLS.
  • A good LCP score is 2.5 seconds or less; poor is over 4.0 seconds.
  • LCP measures only above-the-fold content, not the entire page.
  • The metric stops recording after the first user interaction.
  • Slow server response time and render-blocking resources are the most common causes of poor LCP.

How it works in practice

A news article page loads a hero image (1200x600px) and a headline in a large font. The browser renders the headline text at 0.8 seconds, then the hero image finishes loading at 3.2 seconds. LCP reports 3.2 seconds because the image is the largest contentful element. To improve this, the developer could preload the hero image with a <link rel="preload"> tag and serve it via a CDN with WebP compression.

Related terms

First Contentful Paint First Input Delay Cumulative Layout Shift Core Web Vitals Time to Interactive

References

More in CDN & Performance

Apdex Score

The Apdex Score is a standardised metric that measures user satisfaction with application performance by comparing response times against predefined target and tolerable thresholds.

Bandwidth Throttling

Bandwidth throttling is the intentional reduction of data transfer speed by a network operator or service provider to manage congestion, enforce usage policies, or control costs.

Brotli Compression

Brotli is a lossless compression algorithm developed by Google, offering higher text compression ratios than gzip, used by CDNs to reduce page load times.

Cache Hit

A cache hit occurs when a requested resource is found in a CDN edge cache and served directly to the client, bypassing the origin server entirely.

Cache Invalidation

Cache invalidation is the explicit removal of stored web objects from a cache so that new requests must revalidate or refetch them from the origin server.

Cache Miss

A cache miss occurs when a requested resource is not found in a CDN or proxy cache, forcing the request to be forwarded to the origin server and then storing the response for future requests.

CDN

A CDN (Content Delivery Network) is a geographically distributed network of proxy servers and data centers that deliver web content to users from the nearest edge location, reducing latency and offloading origin servers.

Core Web Vitals

Core Web Vitals are a set of three real-world user experience metrics (LCP, INP, CLS) defined by Google to quantify loading, interactivity, and visual stability on web pages.

Cumulative Layout Shift

Cumulative Layout Shift (CLS) is a Core Web Vital metric that measures the sum of all unexpected layout shift scores during a page's lifespan, quantifying visual stability.

Edge Computing

Edge computing is a distributed computing model that processes data and runs application logic at Points of Presence (PoPs) close to end users, minimizing round-trip latency and bandwidth usage compared to centralized cloud regions.

Who Is Online

In total there are 53 users online: 0 registered, 47 guests and 6 bots.

Most users ever online was 5,555 on 17 Jul 2026, 3:23 am.

Bots: Applebot Baiduspider Other Bot Other Crawler PetalBot SemrushBot

Users active in the past 15 minutes. Total registered members: 369