Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Page timeout or slow first byte (TTFB): how to find and fix it

OPS-005High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

TTFB (time to first byte) is the time between a browser asking for a page and receiving the first byte of the reply. It covers the network, any redirects, and the time your server spends building the page. A page timeout is the extreme case: the server does not answer within the limit and the browser or a proxy gives up.

Why it costs you leads or sales

Nothing can render until the first byte arrives. Everything else on the page, including your form, button and tracking tags, waits behind it. Visitors from paid ads are the least patient, and you pay for each click that bounces. If the page times out, the click is wasted and no analytics or ad tag ever fires, so you may not see the loss in your reports.

Where a slow first byte hurts the funnel
  1. Ad clickVisitor requests the landing page
  2. Server responseFirst byte takes many seconds or times out
  3. Page rendersForm and tags never load for many visitors
  4. Lead or saleVisitor has already left

The server stalls on the first request, so every later step is lost.

Visitors still waiting as TTFB growsExample numbers
Visitors still waiting as TTFB grows (example)Under 1 s: 95 % of visitors; 3 s: 80 % of visitors; 6 s: 55 % of visitors; Timeout: 0 % of visitors036739580550Under 1 s3 s6 sTimeout% of visitors

Example: illustrative numbers only, showing how fewer visitors stay as the first byte gets slower.

How to check if your site has it

Measure your TTFB
  1. Time it from the command line

    Run the command below a few times, at different times of day. Look at time_starttransfer. Around 0.8 s or less is a sensible target for a cached landing page; several seconds is a problem.

  2. Test the exact ad URL

    Use the full URL with UTMs and gclid, not just the homepage. Query strings can bypass the cache.

  3. Check the browserChrome

    In Chrome DevTools, open the Network tab, reload, click the first request and read 'Waiting for server response' under Timing.

  4. Test from another region

    A server in the EU may be fast for you and slow for US visitors. Use a speed test that lets you pick a location.

Measure TTFB with curlbash
curl -o /dev/null -s -w 'dns: %{time_namelookup}s
connect: %{time_connect}s
tls: %{time_appconnect}s
TTFB: %{time_starttransfer}s
total: %{time_total}s
redirects: %{num_redirects}
' -L 'https://example.com/landing?utm_source=test'

How to fix it

First find where the time goes. If connect and TLS are slow, look at DNS, the host's network or the CDN. If only TTFB is slow, the server is slow to build the page. Then work through the usual causes below.

Common causes of slow TTFB and the first thing to try
CauseSignFirst fix
No page cacheFast on repeat, slow after cache clears or with query stringsTurn on full-page caching
Slow database or heavy pluginsSlow even when idleDisable plugins one by one, optimise queries
Overloaded or cheap hostingSlow at busy timesUpgrade the plan or move host
Redirect chainnum_redirects is 2 or moreLink straight to the final URL
Slow third-party call on the serverPage waits on an APICache the result or load it after the page
Far-away server, no CDNFast near the host, slow elsewhereAdd a CDN with page caching
Fix it on your platform
  1. Turn on page caching

    Use your host's built-in cache or a caching plugin, and make sure landing pages are not excluded.

  2. Find slow plugins

    Install Query Monitor, load the page and check slow queries and which plugin runs them. Disable suspects on a staging copy.

  3. Check PHP version and object cache

    Use a supported, current PHP version. If your host offers Redis or Memcached object caching, enable it.

  4. Ignore tracking parameters in the cache

    Make sure URLs with utm_ and gclid parameters are served from the cache, not rebuilt each time. Ask your host or cache plugin docs how.

How to confirm it's fixed

Confirmation checklist
  • curl TTFB is consistently under about 1 second on the real ad URL
  • The result holds across several runs and different times of day
  • num_redirects is 0 or 1
  • The page is fast from both EU and US locations
  • The form, button and tracking tags load and work
  • No timeouts in server or host logs after the change
Before and after

Slow first byte

  • Cache bypassed by query strings
  • Two redirects before the page
  • Page builds from scratch each request
  • Visitors leave before it renders

Fast first byte

  • Landing page served from cache
  • Ads link straight to the final URL
  • Short, steady response times
  • Form and tags load for every visitor

How to prevent it happening again

Prevention habits
  • Re-measure TTFB after every plugin, app, theme or hosting change
  • Warn your host before big campaigns and check capacity
  • Keep ad URLs pointing to the final page, with no redirect chain
  • Use a CDN or page cache for landing pages
  • Keep timeouts on outbound API calls short
  • Monitor the page on a schedule, not only when someone complains
How a slow first byte usually unfolds
  1. Day 1

    A new plugin is installed. Pages still load for you.

  2. Day 3

    The cache clears and the first byte now takes several seconds.

  3. Day 4

    An ad campaign sends more traffic and some requests time out.

  4. Day 6

    Someone notices fewer leads. Cause found and fixed.

Example timeline, for illustration only.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real customer journey on a schedule from the EU or the US and records the time to first byte for each step. It also applies a timeout to each step, so a page that stalls or never answers is flagged as a failure.

A failure is re-checked from a second region before one alert goes out, which helps filter one-off blips. The alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) includes a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard and fg_test=1, so you can tell it apart from real visitors.

Questions people ask

Why is my website taking so long to start loading?

A long wait before anything appears usually means a slow time to first byte. Common causes are no page cache, a slow database or heavy plugins, an overloaded host, or a chain of redirects. Measure it with curl or Chrome DevTools to see where the time goes.

What is a good TTFB for a landing page?

For a cached landing page, aim for under about 0.8 to 1 second. Several seconds is a problem, especially for paid traffic. Test the exact ad URL from more than one region.

How do I check my TTFB?

Run curl with the time_starttransfer variable, or open Chrome DevTools, go to the Network tab and read 'Waiting for server response' for the first request. Repeat at different times of day, because results can vary.

Why is my page fast for me but slow for visitors?

You may be seeing a cached copy, or you may be near the server. Visitors arriving with UTM or gclid parameters can bypass the cache, and visitors far away can face longer network delays. Test the full ad URL from other regions.

Why does my page time out only sometimes?

Intermittent timeouts often come from traffic spikes, cache clears, limited server workers or a slow third-party call. Check host logs and resource usage at the times it failed.

Will a CDN fix slow first byte?

A CDN with full-page caching can help a lot for pages that are the same for every visitor. It will not fix a slow server for pages that cannot be cached, so you still need to fix the underlying slowness.

How can I be alerted when my landing page gets slow?

Use monitoring that runs your real page on a schedule and records response times. FunnelGuard checks time to first byte and step timeouts, re-checks failures from a second region and sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: TTFB per step, step timeouts.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.