A speed report says the first byte took a second. The hosting dashboard says the application responded in 190 milliseconds. Both measurements might be right. A visit can wait for a redirect, a DNS lookup, a connection and a TLS handshake before the application even gets the question.
Time to first byte, or TTFB, measures the interval up to the first byte of a response. For a page navigation, the starting point is the start of that navigation. In a browser's request waterfall, the part labelled “Waiting for server response” starts later. Label which clock you're reading before comparing results or buying an upgrade. web.dev's definition of navigation TTFB
Find the document the visitor was waiting for
Open the browser's Network panel before navigating. Record the original URL, final URL, device and connection, local time and test location. Select the main HTML document. A product image, tracking request or availability API might have its own slow first byte, but it is a different request. If you arrived through a shortened campaign link, note every redirect before the final document. A test starting at the final URL skips part of the customer's wait.
Open the Timing view for the document. Depending on whether the browser already has a connection, you may see queueing, DNS lookup, connection establishment, TLS negotiation, request transmission, waiting and content download. An absent DNS or connection phase on a warm second visit is normal. Response download time begins after the first byte and belongs in its own column. Chrome DevTools request timing reference
Try a worked example. The numbers are illustrative. A QR code on a printed menu sends the browser to a short address. Following its redirects consumes 180 ms. Resolving and establishing a connection to the final site takes another 160 ms. After the final request is sent, the browser waits 480 ms for the response to start. Other phases are negligible in this simplified example. Navigation TTFB is about 820 ms, while the waiting phase for the final request is 480 ms. A 190 ms application timer can sit inside those 480 ms. It may exclude network transit, a queue before the application starts and work in a proxy.
Draw the phases as a time budget rather than a blame chart. Close to a quarter of the example's wait occurs before the browser even contacts the final host. If the troublesome campaign link can go directly to the correct secure URL, fixing it could improve the experience without touching PHP or the database.
Build a small set of comparable requests
Start with one exact route that customers find slow. Choose a small static file on the same hostname as a control and an equivalent safe dynamic page if appropriate. A login, checkout or account page needs its normal privacy and freshness rules. Use a test identity and read-only actions when comparing authenticated cases. Keep request type, query parameters, region, browser and network conditions consistent within each comparison.
Separate first visits from warm visits and record cache evidence. Disabling the browser cache in DevTools does not empty an upstream CDN or server-side page cache. A public page can remain a CDN hit after a hard reload. A private browser window can establish a fresh session while still contacting the same edge as everyone else. Avoid purging all production content just to create a cold sample. Use a controlled staging route, a known naturally uncached request or the provider's approved preview.
| Illustrative response | Wait after request is sent | What deserves a closer look |
|---|---|---|
| Public HTML, confirmed edge hit | 95 ms | This response avoided much of the origin work |
| Same HTML after a genuine cache miss | 670 ms | Compare the origin fetch and application trace for this exact request |
| Small static file, edge hit | 78 ms | Edge delivery in these conditions appears quicker than the uncached HTML path |
| Private availability query | 820 ms | Capture timings for a correctly uncached customer action |
Three quick samples and one slow one don't establish how the whole audience experiences the site. Collect multiple runs and keep the individual results along with the middle result and any failures. A small sample can point to a reproducible condition. It cannot give a reliable population-wide 95th percentile. Field data from actual visits covers other devices and networks and may combine several kinds of page. Use it to understand reach, and controlled tests to investigate causes.
Choose the next measurement from the pattern
Most of the wait precedes the final request. Check the entry link and redirect chain. Repeated moves between www, non-www, HTTP and a campaign landing page add opportunities to wait. Update links you control to point to the intended final page and preserve necessary redirects for old bookmarks. If DNS or connection setup is slow for multiple asset types from one city, compare another network and the delivery route. Choosing an origin location offers a way to separate geography from a change of provider.
Cached content is quick but uncached HTML is consistently slow. Ask for the matching origin request, its timestamp and any safe request identifier. A slow miss can come from application work, an origin queue, remote dependencies or an upstream page cache regenerating content. It doesn't prove that one plugin is inefficient. If the host provides trace breakdowns, see whether measured stages add up to a plausible portion of the user-visible wait. Ask what happens before the trace starts.
All routes get slower together, but only during a campaign or scheduled job. Compare request rates and queue or resource metrics for that account during the same minutes. A single average across the day can conceal short periods of saturation. If private requests queue while public hits remain fine, the origin or a particular dependency deserves inspection. If even verified cached assets slow for the affected location, broaden the investigation to the network or edge before changing application capacity.
One API call dominates while the main document is quick. A visitor can see the shop promptly and still wait for the freight price to appear. Measure that API request and the time until the price is visible. Record its endpoint, cache policy, vendor timing and the point in the browser journey at which the application starts it. Optimising the main HTML's first byte alone may never change the customer's complaint.
Ask for one trace someone can actually find
An example support note reads “At 11.14 am AEDT, a signed-out request for this exact product returned 200 with a CDN miss. The browser waited 670 ms after sending it. A repeat hit waited 95 ms. Here is the redacted request reference. Can you match the origin fetch, queue time and application or upstream work?” Include the final origin's time zone if known. Avoid attaching raw network archives containing cookies or private form data.
The technician may find a slow query on catalogue metadata, a remote availability service queried several times in sequence or a rebuild of an expired price list. Each finding implies a different repair. A database index deserves a targeted query review. Combining repeated vendor lookups might remove network trips. Caching a public, stable result can help repeat readers, while a cart or private price response must retain its correct privacy and freshness behaviour. Decide whether the proposed change protects customer correctness as well as speeding up the request.
Close the loop on the same customer's journey
Change one thing and rerun the original conditions. Include the first request after normal expiry, a warmed request and the user group most affected. Keep the working page, price, availability or search result beside the timings. A small error response can arrive extremely quickly. Check that the right service was delivered before declaring the numbers an improvement.
Look beyond TTFB when the goal is perceived speed. If the first byte is now prompt but a large product image arrives late, diagnose the rest of the waterfall. If clicking a button remains sluggish after the page has loaded, measure that interaction. Core Web Vitals practical audit covers user-facing measures that capture different parts of the visit. The best outcome is a short explanation of which wait you reduced, how you know it was on the customer's path and what still accounts for the rest.