Every page load starts with waiting for the server, and until that first byte arrives the visitor is looking at a blank screen. That makes TTFB the first number to check when a site feels slow: before images, fonts or scripts even come into play.
What makes up TTFB
TTFB adds up several steps in sequence:
- DNS lookup: finding the domain’s IP address.
- Connection: opening a TCP connection, or QUIC with HTTP/3.
- TLS handshake: setting up encryption for HTTPS.
- Server processing: running PHP or your app, querying the database and building the HTML.
- Network travel: the first byte making its way back, which takes longer the farther the visitor is from the server (see latency).
On most dynamic sites step 4 is the biggest slice, and it’s the one you control most directly.
Example: measure TTFB with one command
curl -o /dev/null -s -w "DNS: %{time_namelookup}s\nTLS: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\n" https://example.com/
time_starttransfer is the TTFB. Run it twice: if the second run is clearly faster, your cache is doing its job. In the browser, open DevTools → Network, click the first request and look at “Waiting for server response” under Timing.
Why TTFB is high
| Cause | Usual fix |
|---|---|
| No page cache | Enable a page cache such as LiteSpeed Cache |
| Heavy plugins or code | Disable plugins one at a time to find the culprit |
| Slow database queries | Add indexes, clean up oversized tables |
| Visitors far from the server | Serve static files through a CDN |
| Account hitting its resource limits | Reduce the load or move to a better-suited plan |
A common mix-up: TTFB is not total load time. A page can have a good TTFB and still feel slow because of huge images or heavy JavaScript, and the other way round. Read it alongside Core Web Vitals, not instead of them.
On ArabyHost
Sites run on the LiteSpeed web server, and the LiteSpeed Cache plugin serves WordPress pages from cache without running PHP on every visit, usually the single biggest TTFB win. Each account has its own CloudLinux resource limits (LVE), so if TTFB jumps suddenly, check resource usage in the control panel. Our data center is in Germany, so measure from where your visitors actually are rather than from a distant test location. For plugin-heavy sites, start with the WordPress speed guide.
FAQ
What is a good TTFB?
Google's web.dev guidance suggests aiming for 0.8 seconds or less for most visits. Pages served from a page cache are usually much faster than that.
Is TTFB a Core Web Vital?
No, but it comes before them and affects them, especially LCP, because the browser can't start rendering until the first bytes of HTML arrive.
Why do different tools report different TTFB values?
Each tool tests from a different location and network, and may hit a warm or cold cache. Compare the same test from the same place before and after a change.