Skip to content

Performance

Time to First Byte (TTFB)

Time to First Byte is the time from the start of a navigation until the browser receives the first byte of the response. It reflects the network connection and how long the server took to answer. It is not a Core Web Vital, but it sets the floor for the ones that are.

Also called TTFB, server response time Updated

TTFB = time of first response byte − navigation start

How is it calculated?

TTFB adds up everything before the response begins: redirects, DNS lookup, connection and TLS setup, and the server’s work to produce the page.

Google’s TTFB guide treats 800 milliseconds or less as good and over 1,800 milliseconds as poor. Because LCP cannot happen before the first byte arrives, a slow TTFB makes a good LCP hard to reach.

Example

  • 1.4 s to first byte
  • 300 ms nearby
  • 250 ms distant visitors

A page rendered on a server in one region takes 1.4 s to first byte for visitors on another continent and 300 ms nearby. Caching the HTML at the edge brings distant visitors to 250 ms, and their LCP improves by about the same second.

Common mistakes

  • Treating it as pure server time. Redirects and connection setup are included.
  • Measuring from your office next to the data centre. Look at it by country.
  • Optimising images while TTFB is two seconds. Fix the first byte first.

How CrispStats shows it

CrispStats records TTFB with the other vitals when data-vitals is on the script. It is shown at the 75th percentile with the good, needs improvement and poor split, and the breakdown by country shows where distance from your server costs time.

Web vitals on the demo site, Quillbook, on generated traffic. Open it in the demo 

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.