On this page
What this issue is
When a shopper changes a quantity, enters a postcode or ZIP code, or picks a shipping option, the page sends a request to your server or to a third party. This is an API call: a background request that returns data without reloading the page. Examples are /wp-json/wc/store/v1/cart, /?wc-ajax=update_order_review, Shopify's /cart/change.js or /cart/shipping_rates.json, or a call to a carrier such as UPS or FedEx for live rates.
Why it costs you leads or sales
Checkout is where intent is highest. A frozen total, a spinner over the shipping options or a disabled Place order button makes shoppers think the site is broken. They wait a moment, then leave or click repeatedly, which can trigger duplicate requests and make things slower.
- Product pageLoads fast
- CartItem added
- Shipping rates callTakes 8 s or hangs
- PaymentNever reached
- Order confirmationNo purchase
The shopper reaches checkout, but the shipping rates request stalls and the later steps are lost.
Example: illustrative numbers only, showing how completion can fall as the shipping rates call gets slower.
How to check if your site has it
Open DevTools
In Chrome, press F12 and open the Network tab. Tick Preserve log and choose Fetch/XHR to hide images and scripts.
Walk through checkout
Add a product, open the cart, enter an address and change the shipping method. Use a real address in a region you ship to.
Sort by Time
Click the Time column. Any request over about 1 to 2 seconds is a candidate. Click it and read the Timing tab: a long Waiting for server response means the server is slow, not the network.
Repeat with different carts
Try a heavy cart, several shipping zones, a coupon code and a mobile connection (Network throttling set to Fast 4G).
Check server logs or APM
If you have access, look at slow query logs or application monitoring for the same endpoints to see what the server is doing.
How to fix it
The right fix depends on what the slow call is waiting for. These are the usual causes, in the order worth checking.
| Cause | Sign | Fix |
|---|---|---|
| Live carrier rate lookup | Slow only when shipping is calculated | Use flat or table rates, cache rates, or cut the number of carriers queried |
| Heavy database queries | Slow Waiting time on every cart call | Add caching, remove heavy plugins, tune the database |
| Overloaded or small server | Slow everywhere, worse at busy times | Upgrade hosting, add object caching |
| Many shipping zones or rules | Slow grows with cart size | Simplify zones and rules |
| Slow third-party tax or address service | Slow only when entering address | Cache results, use a faster provider, set timeouts |
Find the slow plugin
In WooCommerce, install Query Monitor on a staging copy and load checkout. It lists slow queries, slow HTTP calls and which plugin caused them.
Replace live rates where possible
Under WooCommerce > Settings > Shipping, use flat rate or free shipping thresholds for simple cases. Live carrier plugins often have a rate caching option: turn it on.
Add object caching
Ask your host for Redis or Memcached and enable it with a compatible object cache plugin. Do not full-page cache cart, checkout or account pages.
Review carrier-calculated shipping
Under Settings > Shipping and delivery, check which carrier or app rates are live. Third-party apps are the usual cause of slow rates.
Test with apps disabled
Temporarily remove or disable shipping, discount and upsell apps one by one on a duplicate theme or in a test and compare timing.
Simplify rates
Use fewer rate profiles and shipping zones, or switch to flat rates where it fits your business.
Profile the endpoint
Log how long each step takes (database, carrier call, tax call) so you know where the time goes.
Cache and set timeouts
Cache rate results by origin, destination and weight. Set a short timeout on third-party calls and fall back to a default rate if they fail.
Add indexes and trim queries
Run EXPLAIN on the slowest queries and add indexes. Avoid loading the whole product catalogue for a cart update.
Check shipping apps
In the dashboard, open Settings > Shipping and review any connected third-party rate apps. Remove ones you do not need.
Use fixed rates where possible
Switch to flat or weight-based rates in place of live carrier rates if speed is a problem.
$key = 'rates_' . md5( $origin . '|' . $postcode . '|' . $weight );
$rates = get_transient( $key );
if ( false === $rates ) {
$response = wp_remote_get( $api_url, array( 'timeout' => 4 ) );
if ( ! is_wp_error( $response ) ) {
$rates = json_decode( wp_remote_retrieve_body( $response ), true );
set_transient( $key, $rates, 10 * MINUTE_IN_SECONDS );
}
}How to confirm it's fixed
- Cart and shipping calls in the Network tab return in under about 1 to 2 seconds
- Timing holds with a heavy cart and a coupon
- Timing holds on a throttled mobile connection
- Totals and shipping options update without a long spinner
- A test order completes end to end
- Timing stays good at your usual busy hours, not just when quiet
Before
- Live carrier call on every change
- Spinner for 6 s or more
- Shoppers leave or click repeatedly
After
- Rates cached or simplified
- Options appear in about a second
- Shoppers continue to payment
How to prevent it happening again
- Retest checkout timing after installing or updating shipping, tax, discount or upsell apps
- Keep a note of your normal cart and shipping call times to compare against
- Set timeouts and fallback rates for any third-party call
- Review hosting capacity before sales and campaigns
- Monitor your checkout journey on a schedule, not only after complaints
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It runs your checkout journey as a robot visitor on a schedule and tracks how long the journey takes. If the duration jumps well above its usual level, that is flagged as a duration anomaly, which can be a sign that a cart or shipping call has slowed down. A failure is re-checked from a second region before one alert goes out.
Questions people ask
Why is my checkout stuck on a spinner when I enter my address?
The page is waiting for a shipping rate or tax request to return. Open the browser Network tab, filter to Fetch/XHR and look for a request that takes several seconds or never finishes. It is usually a slow carrier lookup, a heavy plugin or an overloaded server.
Why is shipping calculation so slow at checkout?
Most often the store queries a carrier live for each change, or runs many shipping zones and rules. Database load and slow third-party apps also add time. Caching rates or using flat rates is the quickest fix.
How slow is too slow for a checkout API call?
Aim for cart and shipping calls to return in about 1 to 2 seconds or less. Anything that regularly takes 3 seconds or more is likely to make shoppers hesitate or leave. Test on mobile connections as well as desktop.
How do I measure checkout API response time?
Open DevTools, go to the Network tab, filter to Fetch/XHR and walk through checkout. Sort by Time and read the Timing tab of slow requests. A long Waiting for server response means the delay is on the server side.
Can a slow cart update cause abandoned checkouts?
Yes. If totals or shipping options lag, shoppers may think the site is broken and leave, or click repeatedly and slow it further. Because the page itself loads normally, the loss is easy to overlook.
Will page caching speed up my checkout requests?
Not for the cart and checkout themselves, which must stay uncached because they are personal to each shopper. You can cache individual rate lookups or use object caching such as Redis to speed up the underlying work.
Does FunnelGuard monitor slow checkout API calls?
Only partly. It flags when a checkout journey's total duration jumps above normal, but it does not time each cart or shipping request or name the slow one. Use the Network tab and server monitoring for the detail.
Related issues
- PRF-063Slow form submit response (over 5 s)Fix guide
- PRF-065Database-heavy pages slow under load (WooCommerce cart fragments)Fix guide
- PRF-066admin-ajax.php requests slow down every WordPress pageFix guide
- PRF-061Origin server returns 5xx intermittentlyFix guide
- PRF-062Server timeout (504) on form submit endpointFix guide
- PRF-050TTFB over 800 msFix guide