Free auditStart free
GuideSEO issue · Performance

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.

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 withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Measure in two minutes

  1. 1

    Start with field data

    Use 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.

03Match 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. If the response arrives quickly but rendering still stalls, investigate scripts separately with the third-party scripts guide.

04Checklist

Verify with consistent measurements

  1. 01Keep a baseline of the same URLs, test region, device conditions, and cache state. Compare multiple runs rather than selecting the best one.
  2. 02After changing the server, cache, or redirect path, recheck the response headers and the main document timing.
  3. 03Check field data again after enough real visits accumulate. A lab result and field experience answer different questions.
  4. 04Test that cached pages still show the correct language, logged-in state, price, and other user-specific content before broadening cache rules.
  5. 05If 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.

01What 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.

02Can 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.

03What 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. 01Time to First Byte (TTFB)web.dev · checked 2026-10-24
  2. 02Optimize Time to First Byteweb.dev · checked 2026-10-24
  3. 03Core Web Vitalsweb.dev · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane