Largest Contentful Paint
A Core Web Vital: the time from starting to load a page until its largest visible image or text block is drawn.
In more detail
LCP stands for Largest Contentful Paint; good is 2.5 seconds or less. Improve it with a fast TTFB, preloading or fetchpriority="high" on the hero image, small critical CSS and no render-blocking scripts.
Related terms
- Core Web Vitals — Google's three key user-experience metrics for web pages: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability.
- hero image — The large banner image or section at the top of a page, often the Largest Contentful Paint element.
- preload — A resource hint, <link rel="preload">, that makes the browser download a file needed for the current page right away at high priority.
- fetchpriority attribute — An HTML attribute that hints a resource's relative download priority as high, low or auto.
- time to first byte — The time from starting a request until the first byte of the server's response arrives, covering connection setup, server work and travel time.
Taught in
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform