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.
- Ad clickVisitor lands on the site
- Product pageLoads normally
- Checkout stepSpinner never clears
- PaymentNever reached
- Thank-you pageNo conversion tracked
The visitor reaches the checkout step but the spinner never clears, so later steps are never reached.
Example: of 100 visitors, the spinner on the checkout step stops almost everyone. Numbers are illustrative.
How to check if your site has it
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.
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.
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.
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.
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.
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();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.
Purge caches
Clear your caching plugin, CDN and any minify/combine JS cache. A stale combined file is a common cause after updates.
Exclude the page from JS delay
If your optimisation plugin delays or defers JavaScript, exclude the scripts the checkout or form needs.
Disable recent apps
In Online Store > Themes > Customize, turn off app embeds one at a time under App embeds. Test the page after each.
Preview the theme without edits
Publish or preview an unmodified copy of the theme to see if custom code in theme.liquid or a section causes the hang.
Check script tags in checkout settings
Remove third-party code you no longer need from Settings > Customer events (pixels) if it is stalling the page.
Use Preview mode
Open Tag Assistant preview on the stuck page and see which tag was running when it stalled.
Pause suspect tags
Pause custom HTML tags that load widgets or A/B testing scripts, publish a test version and retest.
Fire heavy tags after load
Move non-essential tags to the Window Loaded trigger so they cannot block the page.
Check custom code
In Site settings > Custom code and page settings, look for scripts that wait on an external service. Remove or add error handling.
Check interactions and embeds
Disable embeds and third-party widgets on the page one by one, then publish and retest.
Review custom code blocks
In the funnel or website builder, check custom JS/HTML elements and the tracking code in settings. Remove recent additions and retest.
Re-embed forms and calendars
Replace the embedded form or calendar with a fresh embed code if it never finishes loading.
Remove recent apps and embeds
In the editor, remove or hide HTML embeds and third-party apps added recently, then preview.
Review custom code
In Settings > Custom code, disable scripts one at a time to find the one that stalls the page.
Check Code Injection
In Settings > Advanced > Code Injection, remove header or footer scripts one at a time and retest.
Check code blocks and extensions
Remove third-party code blocks on the page and test again.
Add error and timeout handling
Wrap every request in try/catch/finally with a timeout, as in the snippet above, and show a message plus a fallback contact route.
Fix the failing endpoint
Check server logs for 5xx errors, CORS headers and slow queries on the API the page calls.
Version your assets
Use hashed filenames and avoid caching HTML for long so users never get HTML pointing at deleted files.
How to confirm it's fixed
- 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.
- 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.
Related issues
- PRF-116Uncaught JavaScript exception on page loadFix guide
- PRF-117Console error on a funnel stepFix guide
- PRF-118Unhandled promise rejectionFix guide
- PRF-123ChunkLoadError on lazily loaded routeFix guide
- PRF-124CORS error blocking API call from the pageFix guide
- PRF-137Error 'Something went wrong' shown after submitFix guide