It comes before FCP and LCP
Nothing paints before the first byte arrives, so TTFB sets the earliest point those metrics can occur.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
TTFB (time to first byte) measures the time between starting to navigate to a page and the first byte of the response beginning to arrive. web.dev treats 0.8 seconds or less as a rough guide for good and anything over 1.8 seconds as poor.
| Component | Typical lever |
|---|---|
| Redirects | Remove unneeded redirect hops, such as http to https to www chains |
| Service worker startup | Applies only when a service worker is involved |
| DNS lookup | Faster DNS provider, fewer distinct hostnames |
| Connection and TLS negotiation | Reused connections, newer protocols, closer servers or a CDN |
| Request until first byte | Server processing: caching, database queries, application code |
Components and thresholds per web.dev: Time to First Byte.
Nothing paints before the first byte arrives, so TTFB sets the earliest point those metrics can occur.
Single-page apps need markup early before JavaScript fills in the content.
A server-rendered site may have a higher TTFB yet still achieve better FCP and LCP than a client-rendered one.
web.dev recommends responding quickly enough that the 75th percentile of users gets a good FCP.
web.dev gives 0.8 seconds or less as a rough guide for good and more than 1.8 seconds as poor. It stresses that TTFB is not a Core Web Vitals metric, so a site need not hit the figure if it scores well on the metrics that matter.
Work through the components: remove redirects, serve from a location close to users or through a CDN, cache full responses where possible and speed up database queries and application code. Measure again after each change.
No. TTFB includes redirects, DNS lookup, connection setup and TLS negotiation as well as the server time. Server response time is only the wait after the request arrives, so TTFB is always the larger figure.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.