A better way to disable WooCommerce's cart fragments script, and re-enqueue it when the cart is updated. Works with all caching plugins.
As of April 2026, Disable Cart Fragments by Optimocha is a WordPress woocommerce plugin with 10K+ active installations and a 4.9/5 rating from 16 reviews. It has been downloaded 133K+ times in total. Requires WordPress 4.6+ and PHP 5.6+. Available on WordPress.org since 2019. Downloads are up 12% this week. Top alternative: Google for WooCommerce.
Disable Cart Fragments is a lightweight plugin which effectively speeds up your WooCommerce website by disabling the cart fragments script. It also enqueues the script back when the cart is not empty anymore; so it only works while the cart is empty.
WooCommerce makes an AJAX request to check your cart and update your cart totals in wherever your theme shows cart contents (like the header menu). This AJAX call is made to override caching plugins, which is good, but it generally takes time.
With our plugin, you have the best of both worlds: You keep using the caching plugin and you still get to update the cart totals when the cart is not empty. This check is made via WooCommerce cart cookies, so it…
It worked for me, thanks.
Updated my review from 1 to 3 stars as author replied here and presumably allowed the notice to be dismissed (I’ve replaced the plugin so I cannot verify).
This plugin advertises speed optimization services via an admin notification but unfortunately it is dismissible for administrator level accounts but not for shop manager accounts. Either an unfortunate bug or intentionally advertising to less privileged user accounts. Either way, we replaced this plugin with one that doesn’t do this.
Fantastic and magical plugin. It should be merged as an option in the WooCommerce settings itself
Probably the best free plugin for any WooCommerce site! Thank you so much 🙂
Awesome plugin, thank you!!!
| WordPress | 4.6+ requiredTested up to 6.8.5 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.