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

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

I setup 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 of 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.

Get access to all our themes and plugins

Trusted by over 1000+ websites

Become a member to use our themes & plugins for an unlimited number of sites. No restrictions!

30-day money-back guarantee.

Not satisfied? Your money back, no questions asked.

Share This