Before a browser can show anything, it has to receive the first byte of the page. The time from the request to that first byte is called TTFB, time to first byte. During that time the visitor sees a blank screen or the previous page. Nothing you do with images, fonts or scripts can start before it ends.
On WordPress, TTFB is often the single largest part of a slow page, and also one of the easiest to fix.
What happens before the first byte
- The connection: DNS lookup, TCP connection and the TLS handshake for HTTPS. Usually 50 to 200 milliseconds, depending on the distance between visitor and server.
- The server’s work: PHP starts, WordPress loads every active plugin and the theme, asks the database dozens or hundreds of questions, and builds the HTML.
- The first byte travels back.
The second step is where WordPress sites differ. A small site on decent hosting builds a page in 200 to 400 milliseconds. A shop with 40 plugins on a crowded shared server can need two seconds or more.
What a good number is
Google’s guidance for a good experience is a TTFB of about 0.8 seconds or less, measured on real visitors. That is a ceiling, not a target. A cached WordPress page on reasonable hosting should answer in well under 200 milliseconds.
On our own site, a page built by WordPress takes about 0.74 seconds to the first byte, and the same page from Keel’s page cache about 0.10 seconds, most of which is the network itself.
How to measure it
- PageSpeed Insights: the field data at the top shows TTFB from real Chrome users, when Google has enough visits. The lab result below includes “Reduce initial server response time” when it is slow.
- Your browser: open the developer tools (F12), Network tab, reload, click the page request and look at “Waiting for server response”.
- Several times: the first request after a quiet period is often slower. Measure a few times, logged out, from a private window.
The fixes, in order of impact
1. Page caching
A page cache saves the finished HTML, so the next visitor skips step two entirely. For pages that are the same for everyone, it turns hundreds of milliseconds into a few. This is the biggest win by far. See Turn on the page cache.
2. Fewer, lighter plugins
Every active plugin runs on every uncached request: in wp-admin, in the shop’s cart and checkout, and for logged-in members. A plugin that does one small thing but loads a large framework costs time on every one of those requests. Removing plugins you do not use is free speed.
3. A current PHP version
Each major PHP release has made WordPress faster. Hosts often leave old sites on old versions. Check in your hosting panel and move to a current, supported PHP version after a backup.
4. An object cache for pages that cannot be cached
Carts, checkouts, account pages and wp-admin are built fresh every time. An object cache such as Redis keeps database answers in memory, so those pages need fewer database queries. It helps most on shops and membership sites. See Redis object cache for WordPress.
5. Better hosting, closer to your visitors
If a cached page still takes more than 300 milliseconds, the server or the network is the problem, not WordPress. Cheap shared hosting puts hundreds of sites on one machine. Choose a host with servers near your visitors, or put a CDN in front of the site.
What does not fix TTFB
- Minifying CSS and JavaScript, lazy loading images and converting to WebP all help the page load faster after the first byte. They do not change the wait before it.
- A faster theme helps only if the theme is what makes page building slow, which is rarer than plugins and database queries.
A quick checklist
- Measure TTFB logged out, a few times.
- Turn on a page cache and measure again.
- Still slow on uncached pages? Count your plugins, check your PHP version, consider Redis.
- Still slow on cached pages? Talk to your host or move.
Common questions
Is TTFB a Core Web Vital?
No. The three Core Web Vitals are Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift. But TTFB comes before all of them: a slow first byte delays Largest Contentful Paint by the same amount, so it often decides whether LCP passes.
Why is TTFB slow only for the first visitor?
The first request after a cache is cleared, or after a quiet period, has to build the page. Later visitors get the cached copy. A cache that rebuilds pages in the background after a clear removes that first slow visit.
Does a CDN improve TTFB?
For cached pages, yes: the CDN answers from a server near the visitor. For pages that cannot be cached, the request still goes to your server, so a CDN helps less there.