Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Timeout before HTML is delivered: how to find and fix it

SEO-080High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every page load starts with a request. Your server must build the page and send back the first bytes of HTML. If that takes too long, the connection is cut. The visitor sees a blank tab or an error. A search crawler records a failed fetch.

This is different from a slow page that loads late. Here no HTML arrives at all before the timeout. Common signs are a 504 Gateway Timeout, a 408, a 522 or 524 from a CDN, or a browser message such as 'took too long to respond'.

Typical causes: an uncached page that runs heavy database queries, a server out of CPU or memory, a plugin or script waiting on a slow external API, a reverse proxy or CDN with a short timeout, or a traffic spike.

Why it costs you leads or sales

A visitor who sees nothing leaves. If the timeout hits a landing page, a form page or a checkout, the ad click you paid for is wasted and no tracking tag ever loads.

Search engines are affected too. Google can lower how often it crawls a site that responds slowly or fails, and pages that repeatedly fail to fetch can drop out of results. AI assistants that fetch pages live may skip a source that does not answer in time.

Where a timeout breaks the journey
  1. Click on ad or resultVisitor or crawler requests the page
  2. Server builds pageSlow query or blocked call, no HTML sent
  3. Page and tags loadNever happens
  4. Form or checkoutNever reached

The request dies before HTML arrives, so every later step is lost.

Visitors reaching the page by server responseExample numbers
Visitors reaching the page by server response (example)Responds normally: 100 visitors out of 100; 1 in 10 requests time out: 90 visitors out of 100; 1 in 3 requests time out: 67 visitors out of 100038771009067Responds normally1 in 10 requests time…1 in 3 requests time …visitors out of 100

Example: illustrative numbers showing how timeouts shrink the audience that sees your page.

How to check if your site has it

Find out whether pages time out
  1. Check Google Search Console crawl stats

    Open Settings, then Crawl stats, then Host status and the Response breakdown. Look for server connectivity problems, timeouts and a high average response time.

  2. Inspect a key URL

    Paste the URL into the URL Inspection tool and run Test live URL. A 'Page fetch failed' or server error result points to a timeout.

  3. Measure time to first byte from the command line

    Run the curl command below several times and at different hours. Values of several seconds, or a failure, confirm the problem.

  4. Read your server and CDN logs

    Search for 499, 504, 522 and 524 responses and for slow requests. Note which URLs and times repeat.

  5. Test from another country

    A timeout that only appears from some regions can point to a CDN or routing problem.

Measure time to first byte and total timebash
curl -o /dev/null -s -w "connect: %{time_connect}s\nfirst byte: %{time_starttransfer}s\ntotal: %{time_total}s\nstatus: %{http_code}\n" --max-time 30 https://www.example.com/

How to fix it

First find which step is slow, then apply the fix that matches your platform. The first group of steps applies to any site.

General fix order
  1. Turn on full-page caching

    Serve ready-made HTML for pages that are the same for every visitor, so the server does not rebuild them on each request.

  2. Remove blocking external calls

    If the server waits on a slow API, CRM or font service before sending HTML, load it after the page or set a short timeout with a fallback.

  3. Fix slow database queries

    Use your host's slow query log to find the worst queries, then add indexes or remove the plugin or code behind them.

  4. Give the server more resources

    If CPU or memory is maxed out, move to a bigger plan or better host. Check for bots or spikes that cause the load first.

  5. Check proxy and CDN timeouts

    Make sure the origin answers well inside the CDN or load balancer limit (often 30 to 100 seconds, depending on the provider). Fixing the origin is better than raising the limit.

Platform specifics
  1. Install one caching plugin

    Use a page caching plugin or your host's built-in cache and enable page cache. Do not run two caching plugins at once.

  2. Find slow plugins

    Deactivate plugins one by one on a staging copy, or use the Query Monitor plugin to see slow queries and slow HTTP calls.

  3. Raise PHP limits only as a last step

    If a heavy task needs it, ask your host to raise max_execution_time and memory_limit, but fix the slow task first.

How to confirm it's fixed

Confirmation checks
  • curl time to first byte is consistently low across several runs and hours
  • URL Inspection Test live URL fetches the page successfully
  • Search Console Crawl stats shows falling errors and response time over the next days
  • Server and CDN logs show no new 499, 504, 522 or 524 responses
  • Key journeys (form, checkout) complete from at least two regions

Search Console data lags, so allow a few days to see the trend improve.

How to prevent it happening again

Prevention habits
  • Keep full-page caching on and test after every plugin, app or theme change
  • Set uptime and response-time alerts on your host or monitoring tool
  • Add short timeouts and fallbacks to every external call made while building a page
  • Review Search Console Crawl stats monthly
  • Load test before big campaigns or sales
  • Keep a record of the slowest URLs and recheck them after releases

How FunnelGuard handles this

FunnelGuard detects this only partly. It runs your real customer journeys on a schedule, and when a journey times out, that timeout is reported. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

What it does not do: it does not measure how long Googlebot or other search crawlers wait, it does not track time to first byte for every URL on your site, and it does not read your server logs. It only covers the pages inside the journeys you set up.

To cover the rest by hand, check Search Console Crawl stats and URL Inspection, run the curl command above on your key pages, and review server or CDN logs for 5xx and timeout codes. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card), and every paid plan has a 3-day free trial.

Questions people ask

Why is my website timing out before the page loads?

The server is taking too long to send the first HTML. Common causes are uncached pages with heavy database queries, an overloaded host, a slow external API call while the page is built, or a CDN or proxy with a short timeout. Check logs for 504, 522 or 524 errors to see which one applies.

Does a server timeout hurt SEO?

Yes. If Googlebot cannot fetch a page, it cannot index or refresh it, and repeated failures can lower how often your site is crawled. Pages that keep failing may drop out of search results.

How do I check if Googlebot is timing out on my site?

Open Google Search Console, go to Settings, then Crawl stats, and review Host status and the response breakdown for connectivity errors and slow responses. You can also run Test live URL in URL Inspection on a key page.

What is a good server response time?

Aim for a time to first byte well under one second for most pages. Google's guidance treats about 800 milliseconds or less as good for page loading. Anything that regularly runs to several seconds is risky for both visitors and crawlers.

How do I fix a 504 Gateway Timeout error?

A 504 means a proxy or CDN waited too long for your origin server. Find why the origin is slow, using caching, query tuning, removing blocking external calls or adding server capacity, rather than only raising the proxy timeout.

Can a WordPress plugin cause a timeout?

Yes. A plugin that runs heavy queries or waits on a slow external service can delay the whole page. Use Query Monitor or deactivate plugins one by one on a staging copy to find the cause.

Will FunnelGuard tell me when my pages time out?

Partly. It reports timeouts that happen during the customer journeys you set up, with a screenshot and a likely cause. It does not measure crawler response times or check every URL, so also watch Search Console.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Journey timeouts are reported.

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.