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?
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.)
- Download the plugin (.zip file) on your hard drive.
- Unzip the zip file contents.
- Upload the
disable-cart-fragmentsfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- When activated, it will start working. There’s no settings page, simply activate and use.
Contributors & Developers
“Disable Cart Fragments by Optimocha” is open source software. The following people have contributed to this plugin.Contributors
“Disable Cart Fragments by Optimocha” has been translated into 2 locales. Thank you to the translators for their contributions.
Interested in development?
- Tested and ensured compatibility with WordPress 6.2 and WooCommerce 7.8.0.
- Fixed an issue: Store managers were unable to dismiss the notices.
- Tested and ensured compatibility with PHP 8.1, WordPress 6.1.1 and WooCommerce 7.3.0.
- Added the necessary HPOS (High-Performance Order Storage) compatibility code.
- Version bumps to ensure DCF is working with WordPress 6.0 and WooCommerce 6.5.1.
- Turns out WordPress thinks v1.21 is “newer” than 1.4 – kind of makes sense; we should’ve made v1.21 as v1.2.1. Anyway, we’re releasing v2.0 which is the same as v1.4 but this will set the record straight and people using v1.21 will get updates this time.
- Tested up to WordPress’s and WooCommerce’s latest versions.
- Fixed non-dismissible notice.
- New uninstall.php.
- Forgot to change the version name in the PHP file… (sigh)
- Tested with WooCommerce v4.0.1.
- Changed dependancy of the cart fragments script from woommerce(.min).js to jquery.js.
- Edited readme.txt to fix the info on the “Installation” section.
- Branded the plugin with a nice little icon.
- Initial release