Why does Largest Contentful Paint sometimes attribute delay to TTFB even when server response times are under 200ms?
Answered 3-minute answer rooted in 2 pages
Because the TTFB inside an LCP breakdown is measured from the visitor’s side, starting at navigation, and the server’s processing time is only one piece of it. web.dev defines TTFB as the sum of redirect time, service worker startup time, DNS lookup, connection and TLS negotiation, and the request until the first byte arrives. A backend that answers in 150 milliseconds can still produce a field TTFB of a second or more when a redirect, a slow DNS lookup or a long connection setup on a mobile network comes first.
What the TTFB subpart includes
web.dev’s LCP optimization guide defines the TTFB subpart as “The time from when the user initiates loading the page until the browser receives the first byte of the HTML document response”. The TTFB guide lists the phases that add up to it:
| Phase | Visible in server logs? |
|---|---|
| Redirect time | No; each redirect is a separate request the visitor waits through |
| Service worker startup (if one is registered) | No; it happens in the browser |
| DNS lookup | No |
| Connection and TLS negotiation | No |
| Request, until the first byte arrives | Partly; server processing is one part, network transit the rest |
A server monitoring dashboard sees only the processing time inside the last row. Real-user TTFB sees all five.
Where the extra time comes from
Redirects before the page. A link from an ad, an email or an old URL that redirects once or twice adds full round trips before the page request begins. Each counts toward the TTFB of the final page.
DNS and connection setup on real networks. A first visit on a mobile connection pays for DNS resolution and the connection and TLS handshake. A lab test run from a data center close to the server may barely see this cost.
A service worker that must start first. A registered service worker can add startup time before it handles the navigation.
Distance and network quality. Field data includes visitors far from the server or CDN edge and on slower connections. The 75th percentile, which Google uses for Core Web Vitals, is drawn from that wider population.
How to find the culprit
- Collect the TTFB phases from real visits. The Navigation Timing data in the browser separates redirect, DNS, connection and request time. A RUM tool that reports these phases shows which one is large.
- Check redirects on entry URLs. Look at the URLs visitors land on from campaigns and old links. Linking directly to the final URL removes the redirect time entirely.
- Compare segments. If TTFB is high only in some countries or on mobile, the cause is network distance or connection setup, not the server.
- Check the service worker. If one is registered, measure navigations with and without it.
Fixes by cause
- Redirects: update links and campaign URLs to point at the final address.
- Connection and distance: serve HTML from a CDN edge where the content allows it, so the connection terminates closer to the visitor.
- Server processing: cache what can be cached; this is the one part server-side tuning fixes.
The TTFB guide’s rough target is 0.8 seconds or less in the field. A server that responds in under 200 milliseconds is a good start toward that, but the rest of the budget is spent on redirects, DNS, connection setup and network transit that the server never sees.
Answers that share these roots
- Is it true that TTFB is not a Core Web Vital and therefore has no direct impact on Google page experience ranking signals? shares 2 pages
- Why does switching from client-side rendered hero text to server-rendered HTML sometimes worsen LCP instead of improving it? shares 1 page
- Why can serving AVIF to all supporting browsers backfire for Core Web Vitals when the encoding profile is not calibrated for decoding speed alongside file size? shares 1 page
- What is the optimal resource-loading strategy to ensure an above-the-fold background image does not become the LCP bottleneck on responsive layouts? shares 1 page
- What end-to-end image optimization pipeline should a media-heavy site implement to guarantee LCP compliance across device tiers without manual intervention per image? shares 1 page
- Is it true that converting all images to WebP is sufficient image optimization for passing Core Web Vitals, making further compression or responsive sizing unnecessary? shares 1 page
Leave a Reply