Fix WooCommerce Endless Loading Spinner

Are you noting ongoing loading issues on Woo shop checkout or other pages? Check how to fix the WooCommerce endless loading spinner error

By Claudio Pires
Updated on August 13, 2022
Fix WooCommerce Endless Loading Spinner

Fixing WooCommerce Endless Loading spinner, Check out page loads the payment methods/totals via ajax – this display a loading spinner briefly. If there are problems using it on your checkout page using the WooCommerce WordPress plugin, this section may fail to load, or the spinner may remain.

WooCommerce Endless Loading Spinner

Fix WooCommerce Endless Loading Spinner
Fix WooCommerce Endless Loading Spinner

First, you should check WooCommerce > System Status for errors – often, mistakes will be highlighted.

Still, having problems? Common causes and resolutions are listed below.

AJAX error due to WordPress settings.

The URLs in Settings > General need to match – this is because AJAX requests don’t work across different domains:

Fix WooCommerce Endless Loading Spinner
Fix WooCommerce Endless Loading Spinner

Other JavaScript errors and conflicts

Themes and plugins can often cause problems (especially poorly coded ones!) with JavaScript. Check for errors using your browser’s error console to check and fix the WooCommerce endless loadings spinner.

Other JavaScript errors and conflicts
Fix WooCommerce Endless Loading Spinner

Invalid Response from an AJAX Call

View the XHR tab on your browser’s developer console and look at the response. The expected response would be JSON. If the answer is HTML, this can be up by several different things. Often this is present by an index.html file in the root directory of the WordPress installation.

Invalid Response from an AJAX Call Search Console
Search Console

This can have a fix by either removing the index.html file or by adjusting the indexes directive on the server configuration and prioritizing index.php over index.html. Some caching plugins will also prepend HTML to the JSON response.

You may also see a response of -1. This is a security failure and is caused by a cached nonce.

Search Console This is a security failure and is caused by a cached nonce
Search Console

You can also check for conflicts by turning off other plugins and switching to the default WordPress theme – this will often reveal the problem.

WP Memory Limit Check to Fix WooCommerce Endless Loading Spinner

We recommend at least 64MB. See: Increasing the WP Memory Limit

This is a common question from Woocommerce users. If you visit the Woocommerce support page, they will say that you must keep the default theme storefront and should not use any other plugins. But the reality is different. Some troubleshooting sites, including Stackoverflow, mentioned the Ajax issue, which I think is an older issue that has since been fixed.

A recent post on the Woocommerce forum states that the site URL and WordPress URL should be the same. This doesn’t make sense, as users may use their store in different folders or subdomains. Anyway, I understand that you can look for a test and try the method.

You can fix the infinite loading spinner on Woocommerce order page by removing the Smart Payments button or the Paypal button from Woocommerece settings page. Go to Woocommerece > Settings > Payments and disable Paypal Smart Payment Buttons / Paypal Buttons. This may vary depending on the plugins and payment methods present. Finally, fixing the WooCommerce endless loading spinner.

If you have this issue and fixed in another way or have questions, feel free to write them up on the comments section

Claudio Pires

Claudio Pires is the co-founder of Visualmodo, a renowned company in web development and design. With over 15 years of experience, Claudio has honed his skills in content creation, web development support, and senior web designer. A trilingual expert fluent in English, Portuguese, and Spanish, he brings a global perspective to his work. Beyond his professional endeavors, Claudio is an active YouTuber, sharing his insights and expertise with a broader audience. Based in Brazil, Claudio continues to push the boundaries of web design and digital content, making him a pivotal figure in the industry.