Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Page stuck on loading spinner forever: how to find and fix it

PRF-133High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A loading spinner is a small animation that says "please wait". It should disappear when the data arrives. When it never goes away, the page is stuck in a loading state. The content, form or button behind it never appears.

The usual causes are a failed or hanging API request, a JavaScript error that stops the code before it hides the spinner, a blocked or slow third-party script (booking widget, payment form, chat), or a stale cached file that no longer matches the page. The common thread is code that handles success but has no path for failure or timeout.

Why it costs you leads or sales

Visitors do not wait long. With no message and no way forward, they close the tab. If the spinner sits on a checkout, booking step or lead form, the visitor was ready to convert and you lose them at the worst moment.

It is also hard to notice. The page loads, the server returns 200, and uptime tools stay green. It may only happen on some browsers, networks or after a deploy, so you rarely see it yourself.

Where a stuck spinner breaks the funnel
  1. Ad clickVisitor lands on the site
  2. Product pageLoads normally
  3. Checkout stepSpinner never clears
  4. PaymentNever reached
  5. Thank-you pageNo conversion tracked

The visitor reaches the checkout step but the spinner never clears, so later steps are never reached.

Visitors reaching each stepExample numbers
Visitors reaching each step (example)Product page: 100 visitors; Checkout step: 60 visitors; Payment: 4 visitors; Thank-you page: 3 visitors038771006043Product pageCheckout stepPaymentThank-you pagevisitors

Example: of 100 visitors, the spinner on the checkout step stops almost everyone. Numbers are illustrative.

How to check if your site has it

Find out what the spinner is waiting for
  1. Reproduce it in a clean window

    Open the page in a private window with extensions off. Try Chrome and Safari, and a phone on mobile data. Some stuck spinners only appear for some browsers or networks.

  2. Open the Network tab

    Press F12, choose Network, reload. Look for requests marked red (4xx/5xx), blocked, or still pending with no response. The pending one is often the culprit.

  3. Open the Console tab

    Look for red errors such as TypeError, ChunkLoadError or CORS messages. An error before the spinner is hidden usually explains why it stays.

  4. Check third-party widgets

    Block one script at a time (Network tab, right-click, Block request URL) or disable it in your tag manager and see if the spinner clears.

  5. Test with a slow network

    In the Network tab, set throttling to Slow 4G, reload and wait. If the spinner never gives up, there is no timeout.

How to fix it

Fix the cause you found first (the failed request or the script error). Then fix the weakness underneath: the spinner has no exit on failure. Always hide it in a finally block and add a timeout.

Hide the spinner on success, error and timeoutjavascript
const spinner = document.getElementById('spinner');
const errorBox = document.getElementById('load-error');

async function loadData() {
  const controller = new AbortController();
  const timer = setTimeout(() => controller.abort(), 10000); // 10 s
  spinner.hidden = false;
  try {
    const res = await fetch('/api/offers', { signal: controller.signal });
    if (!res.ok) throw new Error('HTTP ' + res.status);
    const data = await res.json();
    render(data);
  } catch (err) {
    errorBox.hidden = false; // tell the visitor and offer a retry or contact option
    console.error(err);
  } finally {
    clearTimeout(timer);
    spinner.hidden = true;
  }
}
loadData();
Fix by platform
  1. Find the conflicting plugin

    Switch to a default theme and disable plugins in groups (or use the Health Check plugin's troubleshooting mode) until the spinner clears. Then update or replace the plugin.

  2. Purge caches

    Clear your caching plugin, CDN and any minify/combine JS cache. A stale combined file is a common cause after updates.

  3. Exclude the page from JS delay

    If your optimisation plugin delays or defers JavaScript, exclude the scripts the checkout or form needs.

How to confirm it's fixed

Confirmation checks
  • The page finishes loading in a private window in Chrome and Safari.
  • The Network tab shows no pending or red requests for the content the spinner waits on.
  • The Console shows no red errors on the page.
  • With Slow 4G throttling, the page either loads or shows an error message within your timeout.
  • With the API request blocked, the spinner disappears and the error message appears.
  • You can complete the full journey, from landing page to thank-you page, on desktop and mobile.

How to prevent it happening again

Most stuck spinners come from a change: a plugin update, a new tag, a deploy or an API that slowed down. Treat the loading state as something that must always end.

Prevention habits
  • Use try/catch/finally so the spinner is always hidden.
  • Set a timeout on every request the page waits for.
  • Load third-party widgets asynchronously so they cannot block the page.
  • Test key journeys after every deploy, plugin update or tag change.
  • Keep a fallback contact option visible on key steps.
  • Run a scheduled check on your key journeys so a failure is found before customers report it.

How FunnelGuard handles this

FunnelGuard covers this issue partly. A robot visitor runs your journey on a schedule and checks each step. If the spinner never clears, the step the robot is waiting on times out and the check fails. A failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause.

What it does not do: there is no spinner-specific message. The alert says a step timed out, not that a spinner was stuck. A spinner that hides a form but does not stop the robot's next action may also not be flagged by that check alone.

To cover the rest by hand, use the screenshot in the alert to see whether a spinner is showing, then follow the Network and Console checks above. Also test slow connections and different browsers yourself, since a scheduled robot run will not reproduce every visitor's conditions. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my page stuck on a loading spinner?

The page is waiting for a request, script or widget that failed or never answered, and the code has no way to stop the spinner on failure. Common causes are a failed API call, a JavaScript error, a blocked third-party script or stale cached files. Check the Network and Console tabs to find which one.

How do I find what is blocking my loading spinner?

Open your browser's developer tools with F12, reload the page, and look in the Network tab for red or pending requests. Then check the Console tab for errors. Disabling third-party scripts one at a time also shows which one stalls the page.

Why does my checkout spinner never stop?

Usually a script or API call on the checkout step failed, such as a shipping, payment or address widget, and the page never received a response. An app, plugin or tag added recently is a frequent cause. Disable recent additions one at a time and retest.

How do I make a spinner hide when a request fails?

Put the code that hides the spinner in a finally block so it runs on success and on error, and add a timeout that aborts the request after a set time. Then show an error message with a retry option.

Can a loading spinner only get stuck on some browsers or devices?

Yes. An unsupported feature in Safari or an older browser, a slow mobile connection, or an ad blocker can stop a script that works elsewhere. Test in several browsers and on mobile data, not just your own computer.

Will uptime monitoring catch a page stuck on a spinner?

Usually not. The server still returns the page successfully, so a simple uptime check stays green. You need a check that runs the journey in a browser and notices a step that never completes.

Does FunnelGuard detect a stuck loading spinner?

Only partly. It runs your journey and fails the check when a step times out, then alerts you with a screenshot and likely cause. It has no spinner-specific message, so use the screenshot and your browser tools to confirm the spinner is the reason.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: step timeout fails; no spinner-specific message.

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.