# Slow Time to First Byte

> Measure time to first byte, separate connection delay from backend work, and diagnose slow routes with browser and server timing data.

Canonical: https://scaplet.com/seo-issues/slow-ttfb

Guide SEO issue · Performance

Measure time to first byte, separate connection delay from backend work, and diagnose slow routes with browser and server timing data.

5 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

Time to First Byte (TTFB) measures the time from a request starting until the first byte of the response arrives. High TTFB can come from network setup, redirects, cache misses, or slow backend work. Measure representative URLs in the field and in a controlled test, then inspect server timing and cache behavior before changing frontend assets.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fslow-ttfb%20(%22Slow%20Time%20to%20First%20Byte%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fslow-ttfb%20(%22Slow%20Time%20to%20First%20Byte%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fslow-ttfb%20(%22Slow%20Time%20to%20First%20Byte%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fslow-ttfb%20(%22Slow%20Time%20to%20First%20Byte%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 5 minutes.

1. [Understand what TTFB measures 01](#understand-what-ttfb-measures)
2. [Measure in two minutes 02](#measure-in-two-minutes)
3. [Fix the slow stage 03](#fix-the-slow-stage)
4. [Verify with consistent measurements 04](#verify-with-consistent-measurements)

_01_web.dev's rough guide for TTFB

## Understand what TTFB measures

web.dev defines [TTFB](/glossary/time-to-first-byte) as the time between starting to navigate to a page and when the first byte of the response begins to arrive. It is the sum of redirect time, [service worker](/glossary/service-worker) startup time (if applicable), DNS lookup, connection and TLS negotiation, and the request up until the first byte of the response arrives. A high number alone does not identify which stage is slow. TTFB is not a [Core Web Vitals](/glossary/core-web-vitals) metric; it precedes [First Contentful Paint](/glossary/first-contentful-paint) (FCP) and [Largest Contentful Paint](/glossary/largest-contentful-paint) (LCP), so a high TTFB adds time to both.

Rating

### Good

TTFB

0.8 seconds or less

Rating

### Poor

TTFB

Greater than 1.8 seconds

- **Service worker startup:** if a service worker controls the page, its startup time is part of TTFB.
- **Network setup:** DNS lookup, connection establishment, and TLS negotiation can add delay before the request reaches your application.
- **Redirects:** Each redirect requires another request before the final response begins. Check the full chain, including HTTP to [HTTPS](/glossary/https) and host normalization.
- **Cache behavior:** A CDN edge hit and an origin cache miss can have very different response paths. Compare the same route under both conditions where possible.
- **Application work:** Database queries, [server-side rendering](/glossary/server-side-rendering), external API calls, and overloaded hosting can delay the first response bytes.

web.dev calls these a rough guide: a server-rendered site can have a higher TTFB and still beat a client-rendered one on FCP and LCP. A 103 Early Hints response or early flush of the headers or `<head>` can count as the first byte, so compare TTFB across platforms with care.

A slow TTFB is not automatically a front-end JavaScript problem. Scripts can make a page feel slow after HTML arrives, while TTFB is measured before the browser receives that response. Find the phase that dominates before choosing a fix.

_02_How it works

## Measure in two minutes

1. 1

### Start with field data

Use [PageSpeed Insights](/glossary/pagespeed-insights) for real-user data (for sites in the Chrome User Experience Report) and a lab run. web.dev recommends field data as the primary source because redirects affect it, while lab tools often measure the final URL and miss that delay. Lighthouse's server response time audit also excludes DNS lookup and redirect time, so it covers only part of TTFB.
2. 2

### Inspect the document request

In Chrome DevTools Network, select the main document and inspect Timing. Record redirects, queueing, connection setup, waiting for server response, and the final status. Repeat a few times; one request can be a cache or network outlier.
3. 3

### Compare routes and cache states

Test the home page, a content route, and a dynamic route. Compare a warm request with a cold request and inspect response headers for cache behavior. Do not compare different regions or cache states as if they were the same test.
4. 4

### Add server-side timings

If you own the backend, expose a `Server-Timing` header for expensive work such as database queries, server-side rendering, and edge cache hits or misses. Inspect those values in DevTools to see whether the wait is in the app or upstream.

Example Server-Timing response header

```
Server-Timing: db;desc="Database";dur=82, ssr;desc="Server rendering";dur=120
```

The values in a `Server-Timing` header are diagnostics from your own application. Keep them meaningful, avoid exposing sensitive internal detail, and use the data to identify a slow component rather than treating one header as proof that a fix worked.

_03_Match the fix to the evidence

## Fix the slow stage

Evidence

### Long DNS, connect, or TLS phase

Investigate

Check geographic distance, DNS provider, connection reuse, and unnecessary cross-origin hops.

Avoid

Rewriting application queries before confirming the request reaches the origin slowly.

Evidence

### Repeated redirect time

Investigate

Remove unnecessary hops and link directly to the final URL. Keep redirects for genuine URL moves.

Avoid

Removing a redirect that enforces the canonical host or HTTPS.

Evidence

### Slow cache miss, fast cache hit

Investigate

Review cacheability, cache key variation, TTL, and whether HTML can be cached safely.

Avoid

Caching personalized responses without accounting for user-specific content.

Evidence

### Server waiting dominates across repeats

Investigate

Profile backend work; inspect database query duration, SSR, external calls, and hosting capacity.

Avoid

Optimizing image compression when the HTML response itself has not arrived.

Evidence

### Only one route or template is slow

Investigate

Compare its data access, rendering, and response headers with a fast route.

Avoid

Changing global infrastructure before finding the route-specific cost.

For a site-wide problem, check host capacity and CDN configuration first. For a route-specific problem, profile the template and its data dependencies. For redirect overhead, see [redirect chains](/seo-issues/redirect-chains). If the response arrives quickly but rendering still stalls, investigate scripts separately with the [third-party scripts guide](/seo-issues/third-party-scripts).

_04_Checklist

## Verify with consistent measurements

1. 01 Keep a baseline of the same URLs, test region, device conditions, and cache state. Compare multiple runs rather than selecting the best one.
2. 02 After changing the server, cache, or redirect path, recheck the response headers and the main document timing.
3. 03 Check field data again after enough real visits accumulate. A lab result and field experience answer different questions.
4. 04 Test that cached pages still show the correct language, logged-in state, price, and other user-specific content before broadening cache rules.
5. 05 If the page is still slow after the first byte, inspect loading and interaction metrics too. A better TTFB does not guarantee that the full page is fast.

TTFB is most useful when paired with timing breakdowns and an explicit hypothesis. A lower number is evidence that the response starts earlier under the measured conditions; confirm that users also receive correct and complete content.

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ What causes a high TTFB?

Potential contributors include network setup, redirects, CDN or browser cache misses, slow hosting, database work, server rendering, and external calls. Use timing breakdowns to identify which one applies.

_02_ Can JavaScript cause slow TTFB?

Client-side JavaScript generally runs after the HTML response begins arriving, so it is not the first place to look for high document TTFB. Server-side rendering or an API dependency can delay the response itself. web.dev does note that when a page needs JavaScript to fill in its content, a low TTFB matters even more because client rendering can start sooner.

_03_ What is a good TTFB?

web.dev's rough guide is 0.8 seconds or less for good and greater than 1.8 seconds for poor. TTFB is not a Core Web Vitals metric, so it matters mainly when it holds back FCP and LCP.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- web.dev

1. 01 [Time to First Byte (TTFB)](https://web.dev/articles/ttfb) web.dev · checked 2026-10-24
2. 02 [Optimize Time to First Byte](https://web.dev/articles/optimize-ttfb) web.dev · checked 2026-10-24
3. 03 [Core Web Vitals](https://web.dev/articles/vitals) web.dev · checked 2026-10-24

## Keep learning

[All seo issues](/seo-issues)

[Learn Poor Largest Contentful Paint (LCP) Performance](/seo-issues/poor-lcp) [Related HTTP 499 Client Closed Request HTTP status codes](/errors/http/499) [Read next Third-party scripts slowing your site Performance](/seo-issues/third-party-scripts) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[Sitemap not found](/seo-issues/sitemap-not-found) [XML sitemap too large](/seo-issues/sitemap-too-large) [Soft 404 errors](/seo-issues/soft-404-errors) [Staging site indexed](/seo-issues/staging-site-indexed)

More in Performance
[Images without width and height](/seo-issues/images-without-dimensions) [LCP image is lazy-loaded](/seo-issues/lazy-loaded-lcp-image) [Poor Cumulative Layout Shift (CLS)](/seo-issues/poor-cls) [Poor Interaction to Next Paint (INP)](/seo-issues/poor-inp) [Poor Largest Contentful Paint (LCP)](/seo-issues/poor-lcp) [Render-blocking JavaScript](/seo-issues/render-blocking-javascript) [Slow Time to First Byte](/seo-issues/slow-ttfb) [Third-party scripts slowing your site](/seo-issues/third-party-scripts) [Web fonts are delaying text](/seo-issues/web-fonts-blocking-text)

Terms on this page
[Time to First Byte (TTFB)](/glossary/time-to-first-byte) [Service worker](/glossary/service-worker) [Core Web Vitals](/glossary/core-web-vitals) [First Contentful Paint](/glossary/first-contentful-paint) [Largest Contentful Paint](/glossary/largest-contentful-paint) [HTTPS](/glossary/https) [Server-side rendering](/glossary/server-side-rendering) [PageSpeed Insights](/glossary/pagespeed-insights)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
