Skip to content

How to Video – Stop Cart Fragments Loading on Your Home Page

Matt KnightonJun 2017·1 min read
How to Video –  Stop Cart Fragments Loading on Your Home Page

We have been talking about page speed a fair bit lately. I have actually become pretty obsessive about it.

This leads me to make a fair few simple script adjustments to improve my homepage load time.

I set up a GTMetrix monitor on the homepage of Divi Framework and found the cart fragments load was slowing down my page at random times.

Overall I thought removing it on the homepage would make sense, so I experimented and found it was an excellent choice to turn it off.

How do you turn off the Cart Fragments? Lets me show you how.

First – Open your functions.php in your child theme.

Second – Past in our code snippet to your functions.php file

Third – save it an enjoy the time savings.

You can extend this to other pages if you want to. For now, I only do it on my homepage.

More Articles & Insights

View all articles
Why Your Business Still Needs a Website in 2026 (Even After Organic Search Dropped 90%)
Nov 2026 · WordPress & AI

Why Your Business Still Needs a Website in 2026 (Even After Organic Search Dropped 90%)

Read Article
How to Display Multiple Sidebars with Kadence Elements
Mar 2025 · WordPress & AI

How to Display Multiple Sidebars with Kadence Elements

Read Article
Fixing WordPress Emoji Saving Issues with ChatGPT Output
Mar 2025 · WordPress & AI

Fixing WordPress Emoji Saving Issues with ChatGPT Output

Read Article

Let’s figure it out together

You don’t have to build alone.

A little guidance. A good conversation. A better next step.

Work with me

Start with a 20-minute call. I read every enquiry myself.