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.