Skip to content

Troubleshooting guide

How to reduce First Contentful Paint (FCP)

FCP is the moment a visitor first sees anything. It depends on how fast the server answers and on what blocks the browser from painting.

3 min read10 sectionsUpdated

On this page

Key points

  • Good FCP is 1.8 seconds or less at the 75th percentile.
  • TTFB is part of FCP, so start there.
  • Render-blocking CSS and scripts delay the first paint.
  • Fonts can hide text until they arrive.

What FCP measures

First Contentful Paint is the time from navigation until the browser renders the first text, image or canvas. Google rates 1.8 seconds or less as good and over 3 seconds as poor. It is not a Core Web Vital itself, but it leads directly into LCP, so a slow FCP nearly guarantees a slow LCP.

What slows it down

  • Slow server response, including redirects.
  • Render-blocking stylesheets and synchronous scripts in the head.
  • Large inline payloads, or a very large HTML document.
  • Web fonts with invisible fallback text.
  • Client-side rendering, where nothing appears until JavaScript runs.

Measure it

Split the timing into server and browser portions. If TTFB is 1.5 seconds, front-end work cannot get you under 1.8.

bash
# Time to first byte, in seconds, from the command line
curl -s -o /dev/null -w 'dns %{time_namelookup}  tls %{time_appconnect}  ttfb %{time_starttransfer}\n' https://example.com/

# Lab measurement, mobile profile
npx lighthouse https://example.com --only-categories=performance --quiet --output=json \
  | python3 -c "import sys,json; a=json.load(sys.stdin)['audits']; print(a['first-contentful-paint']['displayValue'], a['server-response-time']['displayValue'])"

Fixes

Bring TTFB down with caching and a CDN: see reduce TTFB. Inline critical CSS for what is above the fold, and load the rest without blocking. Mark scripts with defer. Use font-display: swap, or better, an optional strategy with a well-matched fallback. Server-render your first screen. Eliminate redirects on the entry path, as each one costs a full round trip.

Lab numbers versus real users

Lighthouse runs one load, on a simulated device and network, and it is useful for debugging. What Google uses for ranking signals comes from real Chrome users, at the 75th percentile, over a rolling 28 days. So a change that improves lab figures today takes weeks to appear in field data, and a good lab score does not rule out slow experiences on real phones. Segment by device and country: an average that looks fine can hide a slow group that represents much of your actual audience.

Catch it automatically

Real-user monitoring records FCP from each visit, per page and device. Set a budget, and alert when the 75th percentile regresses after a release. Use the free LCP checker to test a single page.

Frequently asked questions

What is a good FCP?

1.8 seconds or less at the 75th percentile.

Is FCP a Core Web Vital?

No. The three Core Web Vitals are LCP, INP and CLS.

Does a CDN help FCP?

Yes, particularly by reducing TTFB for distant visitors.

  • What is FCP (First Contentful Paint)?: First Contentful Paint explained: what FCP measures, the 1.8 second threshold, how it differs from LCP and TTFB, and the render-blocking fixes that improve it.
  • What is LCP (Largest Contentful Paint)?: Largest Contentful Paint explained: what counts as the LCP element, the 2.5 second threshold, its four sub-parts and how to measure and improve it.
  • How to fix CLS (Cumulative Layout Shift): Fix Cumulative Layout Shift: reserve space for images, ads and embeds, tame web fonts, avoid injected banners and animate safely, with code to copy.
  • What is log optimization?: Log optimization explained: finding the noisiest log sources, levels and sampling, structured fields, dropping duplicates, retention tiers.
  • What is alert flapping?: Alert flapping explained: why alerts fire and resolve over and over, and the fixes that work: sustained conditions, hysteresis, cooldowns and grouping.
  • What is TTFB (time to first byte)?: Time to first byte explained: what TTFB measures, the 0.8 second threshold, the phases that add up to it, how to measure it and how to cut it.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.