Nexcess Logo

How to Disable Cart Fragments on your WooCommerce Site

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
August 20, 2021

WooCommerce by default will load a front-end script that will be uncached and cause an AJAX request on every load. The cart fragments request can add anywhere from 500-700ms to the load time of your site.

In the most recent version of the Nexcess must-use plugin (1.24.0), there is a new feature that will allow you to disable the cart fragments request being made by WooCommerce. You will need to be in wp-admin on your site and have the WooCommerce plugin active in order to be able to use the feature;

Nexcess > Dashboard > Settings

Toggle on the disable cart fragments feature and then click on the save settings button. 

Now when you test the site using GTmetrix or WebPageTest you will notice that the cart fragments request will no longer be loading on every load of pages and products on your site. 

If you notice any issues being caused by disabling cart fragments due to the plugins for WooCommerce being used or the active theme on the site then you can disable the feature and then test on a staging site. But it is where possible recommended keeping cart fragments disabled on your WooCommerce site for performance reasons.

For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.

Luke Cavanagh
Luke Cavanagh

Product Operations Manager at Nexcess. A devoted husband and tween wrangler. Synthwave enthusiast. Jerry Goldsmith fan. Doctor Who fan and related gubbins.

We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.