WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Optimocha v2.4.1

Disable Cart Fragments by Optimocha

A better way to disable WooCommerce's cart fragments script, and re-enqueue it when the cart is updated. Works with all caching plugins.

Disable Cart Fragments by Optimocha

The facts

Rating
4.9★ from 16
Active installs
10k+
Price
Free
Last updated
1 Sep 2025
Added
May 2019
Requires WP
4.6
Tested up to
WP 6.8.8
Requires PHP
5.6
Downloads
138,420

Our analysis

AI-assisted

Disable Cart Fragments by Optimocha is a WordPress plugin designed to enhance the performance of WooCommerce websites by disabling the cart fragments script. It achieves this by checking cart cookies to determine if the cart is empty, only loading the script when necessary, which helps to speed up page load times while maintaining accurate cart totals.

This plugin is suitable for WooCommerce store owners who want to improve their site's speed without sacrificing functionality. It is particularly useful for those using caching plugins, as it allows for efficient cart updates without relying on slow AJAX requests.

Best for: WooCommerce store owners looking to improve site performance.

What it does well

  • Speeds up WooCommerce websites
  • Disables cart fragments script when the cart is empty
  • Updates cart totals without slow AJAX requests
  • Compatible with caching plugins
  • Lightweight and easy to use

Where it falls short

  • Limited information on potential issues
  • May not be suitable for all WooCommerce setups

Verdict

Disable Cart Fragments by Optimocha offers a straightforward solution for optimising WooCommerce performance, particularly for those using caching plugins. It is a practical choice for enhancing site speed while maintaining cart functionality.

From the developer

Optimocha's own description of Disable Cart Fragments by Optimocha, lightly tidied.

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.

Why is disabling cart fragments important?

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.

How does Disable Cart Fragments solve the issue?

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 still employs JavaScript but doesn’t rely on slow AJAX requests. The check is made instantly, whether you’re using a caching plugin or not. How cool is that?

WooCommerce Optimization Services

Feel free to reach out to us at Optimocha.com and let us help you optimize your WooCommerce website!

Main plugin features

  • Disables WooCommerce cart fragments.
  • Checks the cart cookies and if it’s not empty, loads the cart fragments script so the cart totals are still updated.
  • Brings you joy. (WARNING: Might not bring joy in some rare cases.)

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for selling online.

WooCommerce

Everything you need to launch an online store in days and keep it growing for years. From your first sale to m...

Free 7M+ installs 4.5★ (4,820)
Germanized for WooCommerce

Germanized extends WooCommerce to become a legally compliant shop for the german market. Must Have for every g...

Free 70k+ installs 4.8★ (495)