First contentful paint (FCP)

First contentful paint (FCP) is the time from when a user starts navigating to a page until the browser first renders any of its content: text, an image (background images included), an svg element or a non-white canvas. web.dev counts 1.8 seconds or less as good and more than 3.0 seconds as poor, at the 75th percentile of page loads.

The longer version

The definition is web.dev's, from Philip Walton's article on the metric, and it turns on the word content. A white screen, a background colour or a box of colour drawn with CSS does not count, while a line of text, a logo, an svg spinner or an image does. First paint, the older timing, records any render at all, so it can fire on a coloured background before anything readable appears. FCP waits for content. Lighthouse's audit page adds that anything inside an iframe is left out of its measurement. web.dev also points out that FCP includes the unload time of the previous page, connection set-up, redirects and time to first byte, which is why a field value is often larger than a lab one: a real visitor may arrive through a redirect from an advert, on a cold connection, from far away.

web.dev counts an FCP of 1.8 seconds or less as good and more than 3.0 seconds as poor, with needs improvement in between, judged at the 75th percentile of page loads and segmented across mobile and desktop. Lighthouse uses the same bands for mobile, green up to 1.8 seconds, orange to 3 and red above, and stricter ones for desktop, green up to 0.9 seconds, orange to 1.6 and red above. Its score compares the page with real sites in the HTTP Archive, and in the Lighthouse 10 performance score FCP carries 10 per cent of the weight. FCP is not a Core Web Vital, although some guides list it as one. web.dev names the Core Web Vitals as largest contentful paint, interaction to next paint and cumulative layout shift, and describes FCP as a supplemental metric that helps diagnose a slow LCP, typically one held back by render-blocking resources.

FCP says that something has appeared, and largest contentful paint says that the main content has. The first content can be a header, a cookie notice or a loading skeleton with a text label, and the hero image that LCP waits for may arrive seconds later. When the first thing painted is also the largest, the two values are the same. Total blocking time is counted from FCP, so the three metrics describe one load in order. In the lab, FCP comes from Lighthouse, PageSpeed Insights or a recording in the Chrome DevTools Performance panel; in the field, from the Chrome User Experience Report or the web-vitals library's onFCP function. Reading the Paint Timing API by hand is easy to get wrong: web.dev notes that pages loaded in a background tab should be ignored, that pages restored from the back/forward cache should be counted although the API reports nothing for them, and that prerendered pages are measured from activation.

Nearly every slow FCP comes down to what the browser has to wait for before it may paint. CSS is render blocking, so large stylesheets, stylesheets chained through @import and synchronous scripts in the head all delay it, and a slow TTFB delays it by the same amount, since nothing can paint before the HTML arrives. Web fonts can hide text until they load. A client-rendered application that ships an empty page and builds the content in JavaScript paints nothing useful until its bundle has run. web.dev's guides cover each: eliminate render-blocking resources, remove unused CSS and JavaScript, preconnect to required origins, reduce server response times, avoid multiple redirects, preload key requests and keep text visible during web font load with font-display. Deferring CSS can buy a faster FCP at the price of a flash of unstyled content, and a page hidden until everything loads trades the flash for a later FCP, so the fix is to inline the CSS the first view needs and defer the rest. A reviewer who reports that the page stayed white for a few seconds has described a slow FCP, and the report is reproducible when it records the device, the connection and whether it was a first visit.

Common questions

What is a good first contentful paint?

A good FCP is 1.8 seconds or less, according to web.dev, and more than 3.0 seconds is poor, measured at the 75th percentile of page loads on mobile and desktop. Lighthouse grades a desktop run more strictly, with green up to 0.9 seconds, orange to 1.6 and red above, on the developer.chrome.com audit page.

How is first contentful paint calculated?

FCP is the time from the start of navigation to the first frame in which the browser renders text, an image, an svg element or a non-white canvas. The browser records it through the Paint Timing API as the first-contentful-paint entry. Background tabs are excluded, and pages restored from the back/forward cache or prerendered need their own handling, which the web-vitals library does.

How do you improve first contentful paint?

Shorten what the browser waits for before painting. Cut server response time, remove redirects, inline the CSS the first view needs and defer the rest, move scripts out of the head or mark them defer, and keep text visible while web fonts load. A Lighthouse report lists the opportunities it found on the page, ordered by their estimated effect.

What is the difference between FCP and LCP?

First contentful paint records when the first text or image of any kind appears, which may be a header or a loading skeleton. Largest contentful paint records when the largest visible element finishes rendering, usually the hero image or main heading. FCP shows the page has started, LCP that the main content is there, and only LCP is a Core Web Vital.

Is first contentful paint a Core Web Vital?

First contentful paint is not a Core Web Vital. web.dev lists the Core Web Vitals as largest contentful paint, interaction to next paint and cumulative layout shift. FCP is a supplemental metric that web.dev uses to diagnose slow loading, and Lighthouse includes it in its performance score with a weight of 10 per cent in version 10.

What is FCP in SEO?

In SEO reports, FCP is the PageSpeed Insights and Lighthouse figure for how long a visitor waits before seeing anything. Google's Core Web Vitals assessment is built on LCP, INP and CLS, so FCP matters through them: a slow first paint usually means a slow largest paint, and fixing render-blocking resources helps both.

Why is FCP slower in the field than in Lighthouse?

Field values include what a lab run usually skips: the previous page unloading, redirects from adverts or link shorteners, cold connections and slow phones on weak networks. Lighthouse loads the final URL on one machine under fixed throttling. A large gap points at redirects, server time for distant visitors or device speed rather than at the page's own CSS.

Bug reports that arrive ready to triage.

Collect replay, console, network and browser context with the Free plan.

<script src="…/widget.js" data-key="pb_pub_…">