What Is WooCommerce Cart Fragmentation?

Ahsan Parwez
HostWP Expert

Last updated: November 18, 2026 |
Quick Answer

WooCommerce cart fragmentation is the AJAX process (wc-ajax=get_refreshed_fragments) that updates your header cart icon or mini-cart without reloading the page. The performance problem happens when this script runs on every single page of your site (including blogs and non-shop pages), bypassing page cache and slowing down your entire website.

Detailed Answer

  • It is meant to keep the cart updated in real-time, but poor implementation turns it into a major speed killer:
    • How it works: When a user adds a product, WooCommerce fires a background AJAX request to fetch the new cart total and update the header widget instantly.
    • The Cache Bypass: Because it is a dynamic request, it cannot be cached. If your theme loads this script globally, your server has to process it on every single page view, defeating your page cache.
    • The Fix: Disable the default cart fragments script on non-WooCommerce pages (like your blog or about page), or replace the default mini-cart with a lightweight, cache-friendly alternative.
Ahsan's take

Cart fragmentation is one of the most common hidden reasons a WooCommerce site feels sluggish despite having a caching plugin installed. You see fast page loads in your tools, but real users experience a delay because their browser is waiting for that one tiny AJAX call to finish. At HostWP.io, our LiteSpeed servers process these dynamic requests incredibly fast, but the real fix is at the code level. Use a theme or snippet that conditionally loads cart fragments only on shop, cart, and checkout pages. Don’t let a tiny header icon bottleneck your whole catalog.

Was this answer helpful?
Share:
Still have question?

Our WordPress expert are here to help you 24/7.

Contact Support

Expert WordPress Support Engineers Available 24/7

90 sec
Average
Response Time

98Β %
Customer
Rating

24/7
Expert
Support

Black Friday Β· Cyber Monday

Our biggest sale of the year.
Up to 40% off WordPress hosting.

Choose the plan that fits your business. All plans include our core managed hosting features and expert human support with no hidden fees.
Expires in:
View Plans

Submit Your Question Here.