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

Luke Cavanagh, Strategic Support & Accelerant at Liquid Web, brings a decade of experience working with WordPress and WooCommerce to our product team. His GitHub page offers a glimpse into his multiple areas of subject matter expertise.

"Ninja stuff with WordPress and WooCommerce," is an apropos way to describe Luke's savviness with these platforms — and his way of influencing our organization for improving to them.

Coming out of the University of Brighton with a Business and Technology Education Council (BTEC) Higher National Diploma (HND) in 2D & 3D Design, Luke's credentials prepared him well for his current role that blends both web development and design. His HND credential leveraged his foundational learning at West Kent College, where is received a National Diploma (ND) in Graphic Design.

In his personal life, Luke is a devoted husband and teen wrangler. He considers himself a Synthwave enthusiast, Jerry Goldsmith fan, and Doctor Who aficionado. He is happy to introduce his friends and teammates to essential vocabulary for life found only in British English, such as "gubbins" and similar terms.

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.