On this page
What this issue is
Most modern forms send data in the background using JavaScript (often called AJAX). When you press submit, the button shows a spinner or a 'Sending...' label while it waits for the server to reply. When the reply arrives, the form shows a thank-you message or redirects.
The spinner-forever bug happens when that reply never arrives or cannot be read. The request may be pending, blocked, or answered with something the script does not understand. The page keeps waiting, and the visitor sees movement but no result.
Common causes: - A JavaScript error before or during the submit handler. - The form endpoint is slow, down, or returns an error page instead of the expected response. - A PHP warning or notice is printed into the response, so the script cannot parse it as valid JSON. - A caching, security or optimisation plugin blocks or rewrites the request. - A CAPTCHA script fails to load or never returns a token. - A third-party service (CRM, email provider, webhook) is called and never answers.
Why it costs you leads or sales
The visitor has done the hard part and filled in the form. If nothing confirms it, they assume it failed. Some retry, some email you, and many simply leave. Worse, the lead may have been saved on your side while the visitor sees a hang, so you get duplicates or confused follow-ups. Or the lead was never saved at all, and you never know it existed.
- Visitor fills formFields completed
- Clicks submitSpinner starts
- Request or reply failsBlocked, pending or unreadable
- Thank-you messageNever shown
- Lead in inbox and CRMMay never arrive
The form sends the request, but the reply never completes the journey.
The spinner runs, but no confirmation ever appears.
Example: of 100 visitors who press submit, how many end up with a confirmed enquiry. Numbers are illustrative.
How to check if your site has it
Open the page in a private window
This avoids extensions and cached scripts changing the result. Try a second browser too.
Open developer tools
Press F12 (or Cmd+Option+I on Mac). Go to the Console tab and the Network tab. Tick 'Preserve log' in Network.
Submit the form with test details
Use a clearly fake name and an email you control.
Read the Console
A red error such as 'Uncaught TypeError' or 'Failed to load resource' points to a broken script or blocked file.
Read the Network tab
Find the request fired on submit (often a POST to admin-ajax.php, a /wp-json/ path, a form-handler URL or a third-party API). Check its status: pending forever, 4xx, 5xx, or 200 with a non-JSON body.
Click the request and view Response
Look for PHP warnings, HTML error pages or empty output where you expect JSON or a success message.
| What you see | Likely cause |
|---|---|
| Request stays 'pending' | Server or third-party API not answering, or a timeout |
| Status 403 | Security plugin, firewall or nonce check blocked it |
| Status 500 | Server-side error in the form handler |
| Status 200 but spinner stays | Response is not valid JSON, often a PHP warning or HTML in the output |
| No request at all | JavaScript error before the submit, or a script not loaded |
| Request blocked or cancelled | Ad blocker, CORS rule or CSP rule |
How to fix it
Fix the cause you found in the previous section. The steps below cover the most common platforms. If you changed or updated anything recently (a plugin, theme, caching rule or CAPTCHA key), undo that first and test again.
Rule out plugin conflicts
Temporarily deactivate caching, minify and security plugins, then retest. Re-enable one at a time to find the culprit.
Exclude form scripts from optimisation
In your caching or optimisation plugin, exclude the form plugin's JavaScript from minify, combine and delay/defer options. Clear all caches.
Turn on debug logging
In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false. Check wp-content/debug.log for errors, and remove any PHP warning that prints into the response.
Check the mail and integration settings
A hung mail server or webhook can stall the response. Test your SMTP or add-on connection in the form plugin settings.
Test with the theme's default form
Preview a default theme such as Dawn to see if a custom theme edit is breaking the contact form.
Disable recent apps
If you use a form app, check that it is active and its embed is still on the page. Remove and re-add the embed if needed.
Check theme JavaScript
Look for console errors from custom code in theme.liquid or section files and fix or remove the failing script.
Pause recent tags
Use Preview mode and disable recently added Custom HTML tags, especially ones that listen to form events or change form behaviour.
Check for tags that block submit
A tag that calls preventDefault on submit or delays the event can stop the form finishing. Fix or remove it and publish.
Check the form settings
In the Designer, select the form block and review the Action and Method in Form Settings. If using Webflow's own form handling, leave Action empty.
Review custom code
Look in Project Settings > Custom Code and page settings for scripts that intercept the form, and test with them removed.
Check the form's success state
Make sure the Success message element exists and is not deleted, otherwise the form may appear to hang.
Open the form or survey in the builder
Confirm it is published and the embed code on your site is the current one.
Check workflow triggers
Review workflows that run on form submission for errors or paused steps.
Re-embed the form
Replace the old iframe or script with a freshly copied embed code and clear page caches.
Check Velo code
If Dev Mode is on, review code on submit buttons and form events. An unhandled error or a promise that never resolves can leave the form hanging.
Recreate the form
If it is a Wix Forms element, republish the site and test. If it still hangs, add a fresh form and compare.
Remove injected code
Check Settings > Advanced > Code Injection and page-level code blocks for scripts touching the form, and test with them removed.
Check the storage and notification settings
In the form block's Storage tab, confirm a destination is connected and its authorisation has not expired.
Always return a response
Make sure every code path in your handler returns a valid response, including errors. Do not leave a request open while waiting on slow services.
Handle failures and timeouts in the browser
Add a timeout and an error handler so the spinner stops and the visitor sees a message. See the code example below.
Return clean JSON
Send a Content-Type: application/json header and make sure nothing else is printed before or after the JSON.
const form = document.querySelector('#lead-form');
const button = form.querySelector('button[type="submit"]');
form.addEventListener('submit', async (e) => {
e.preventDefault();
button.disabled = true;
button.classList.add('loading');
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), 15000);
try {
const res = await fetch(form.action, {
method: 'POST',
body: new FormData(form),
signal: controller.signal
});
if (!res.ok) throw new Error('Server error ' + res.status);
form.innerHTML = '<p>Thanks, we have your message.</p>';
} catch (err) {
alert('Sorry, that did not send. Please try again or email us.');
} finally {
clearTimeout(timer);
button.disabled = false;
button.classList.remove('loading');
}
});How to confirm it's fixed
- Submit the form in a private window and see a thank-you message or redirect within a few seconds.
- The Console shows no red errors on submit.
- The submit request in the Network tab returns a 200 or expected status with a valid response.
- The test lead arrives in your inbox.
- The test lead appears in your CRM with the right fields.
- Test on mobile and in a second browser.
- Clear caches and retest after any plugin or theme change.
Before
- Spinner runs with no end
- Visitor unsure if it sent
- Lead may or may not be saved
- No error shown to anyone
After
- Spinner ends in a clear thank-you
- Errors show a helpful message
- Lead reaches inbox and CRM
- Failures can be spotted quickly
How to prevent it happening again
- Test your forms after every plugin, theme, caching or tag change.
- Exclude form scripts from minify, combine and delay settings.
- Keep CAPTCHA site and secret keys current.
- Use SMTP or a transactional email service rather than relying on default server mail.
- Show an error message in the form when a request fails, so it never spins silently.
- Check form integrations (CRM, webhooks, Zapier) for expired logins.
- Run an automated test of each form on a schedule.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor fills in and submits your form the way a real person would, then waits for the expected result, such as a thank-you message or redirect. If that result does not appear within the wait limit, the wait_for step times out and the step fails.
A failure is re-checked from a second region before one alert goes out (email, Slack, Teams, WhatsApp, webhook or PagerDuty), with a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent, and it never bypasses CAPTCHAs or bot protection. If a CAPTCHA blocks the test, that shows up as a failure for you to review.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.
Questions people ask
Why does my contact form keep spinning and never submit?
The form sent its request but never got a readable reply, or a JavaScript error stopped the page from handling it. Open the browser's Network and Console tabs, submit the form, and look for a pending, blocked or failed request, or a red error. That shows whether the cause is the script, the server or a third-party service.
How do I fix Contact Form 7 spinner that never stops?
Check the Console for JavaScript errors and the response of the admin-ajax or REST request for PHP warnings. Deactivate caching, minify and security plugins to find conflicts, and exclude the form plugin's scripts from optimisation. Also make sure your mail setup is not hanging the request.
Why is my form stuck on 'Sending' on WordPress?
Typical causes are a plugin conflict, a script removed or delayed by an optimisation plugin, a PHP warning corrupting the JSON response, or a slow mail server. Turn on WP_DEBUG_LOG, retest, and read wp-content/debug.log. Then disable plugins one by one to isolate the conflict.
Can a CAPTCHA cause a form to load forever?
Yes. If the CAPTCHA script fails to load, uses wrong keys or never returns a token, the form can wait indefinitely. Check the Console for CAPTCHA errors and confirm your site and secret keys match the domain. Do not try to bypass the CAPTCHA, fix its setup.
Does the lead still get saved if the spinner never stops?
Sometimes. The server may save the lead and then fail to send a proper response, or it may fail before saving anything. Check your inbox, CRM and form entries after a test submission to see which case you have.
How can I stop a spinner from running forever on a custom form?
Add a timeout with AbortController and an error handler so the spinner stops and shows a message. Make the server always return a response, including on errors. This is a safety net, so still investigate why the request failed.
How do I know when my form stops working?
Test it regularly, or use monitoring that submits it on a schedule. FunnelGuard runs your form journey with a robot visitor and alerts you if the expected result does not appear in time, with a screenshot and a likely cause.
Related issues
- CNV-043Submit button does nothingFix guide
- CNV-045Form submits but shows a generic 'something went wrong'Fix guide
- CNV-046Form endpoint returns 4xx/5xxFix guide
- CNV-057Form times out on slow submit (serverless cold start)Fix guide
- CNV-055Submit button not disabled while sendingFix guide
- CNV-048Form says success but lead never reaches emailFix guide