Increasing site speed (Divi + Hostgator)

BHopkins

Elite Member
Joined
Dec 31, 2010
Messages
2,613
Reaction score
1,748
Website
DiamondLinks.net
Most of my sites load pretty quickly, but I have two new sites both running the Divi theme on Hostgator and they're both very slow. Using GTMetrix I see a lot of "Waiting".

Can someone give me some tips and explain the "Waiting"? Is that the server not responding to the request?

Screen Shot 2019-07-25 at 8.24.33 AM.png Screen Shot 2019-07-25 at 8.26.43 AM.png
 

Nut-Nights

Jr. VIP
Jr. VIP
Joined
Jun 20, 2013
Messages
10,537
Reaction score
7,551
Website
shoppy.gg
Try W3 Total cache plugin and remove any other plugin you are using to speed up your site. Plus look like something is wrong with your server too.
 

Trolling4Dollars

Power Member
Joined
Jun 1, 2016
Messages
740
Reaction score
367
As @Nut-Nights mentioned, try W3 Total Cache. It also looks like you aren't minifying css / javascript, which would also help. Are you behind Cloudflare? If not, consider it.

Having sites on Hostgator, too, this actually doesn't look too bad!
 

BHopkins

Elite Member
Joined
Dec 31, 2010
Messages
2,613
Reaction score
1,748
Website
DiamondLinks.net
Thanks all! I was using the built in caching. I set it to "Level 4 (Aggressive)" and saved it, but when I went back, it had defaulted to "Level 0 (No Cache)". Every time I saved it, it reverted back to 0.

W3 Total Cache solved the problem, thanks!

Screen Shot 2019-07-25 at 8.58.14 AM.png
 

MehdiBmm

Regular Member
Joined
Mar 21, 2017
Messages
272
Reaction score
81
GTMetrix doesn't really give you the speed at which people load your website. Generally divide that by 1.5 or 2. For example, GTMetrix says my website loads in 3.60 but even with caching cleared, it takes me 2.70 or less to load it. The size of your page is also big, try to reduce it to 1MB or less.
 

Hairein

Newbie
Joined
Jul 23, 2019
Messages
20
Reaction score
10
Easy solution is to set up proprietly your CDN.
The problem itself is caused by data being loaded every time when you refresh your page, instead of being stored for future sesstions. That's happen when devs keep using old techs such jQuery, making more requests, or setting up badly codes, that can be easily avoided by upgrading own code to at least ES6.
 

rafark

Elite Member
Joined
Jan 15, 2013
Messages
3,213
Reaction score
1,938
GTMetrix doesn't really give you the speed at which people load your website. Generally divide that by 1.5 or 2. For example, GTMetrix says my website loads in 3.60 but even with caching cleared, it takes me 2.70 or less to load it. The size of your page is also big, try to reduce it to 1MB or less.
I don't know exactly the parameters gmetrix uses to measure the speed, but I'm pretty sure they profile everything until the last resource has loaded. When your browser stops showing you the loading bar/the content has been rendered, there can still be scripts and images loading in the background.
 

Insurena

Registered Member
Joined
Jun 23, 2019
Messages
64
Reaction score
36
Use gzip to compress your site by over 80%... That's half of the job done.

Then minify your CSS and java script. This should solve your problem.
 

Hairein

Newbie
Joined
Jul 23, 2019
Messages
20
Reaction score
10
I don't know exactly the parameters gmetrix uses to measure the speed, but I'm pretty sure they profile everything until the last resource has loaded. When your browser stops showing you the loading bar/the content has been rendered, there can still be scripts and images loading in the background.

Usually 'loading in background' is something like a promise. The code execute one by one, and you can defer it to wait the page loading (otherwise the page will wait the script first).
You can not fix it like this just with w3 school. The plugins can not read human intent, and sometimes they may break it.
 

Hairein

Newbie
Joined
Jul 23, 2019
Messages
20
Reaction score
10
Use gzip to compress your site by over 80%... That's half of the job done.

Then minify your CSS and java script. This should solve your problem.
GZip compression is already enabled, otherwise it would be shown as error in top of Gmetrix. The website is fine, the problem is how the plugins are made / what they've done.

That's why I always prefer develop something from scratch, so I would avoid a bounch of useless stuff xD
 

ContentExpert

Jr. Executive VIP
Jr. VIP
Joined
Jan 16, 2017
Messages
3,933
Reaction score
7,105
Website
YourWritingService.com
Try W3 Total cache plugin and remove any other plugin you are using to speed up your site. Plus look like something is wrong with your server too.
Trying W3 total cache will help.

What options should be toggled to "on" within the W3 Total Cache plugin?

Should the "Minify" option be enabled?
Should browser, CDN, object, and fragment cache all be enabled?

I just installed it on one of my sites yesterday.
 

Nut-Nights

Jr. VIP
Jr. VIP
Joined
Jun 20, 2013
Messages
10,537
Reaction score
7,551
Website
shoppy.gg

WIZDAHL

Regular Member
Joined
Mar 30, 2019
Messages
497
Reaction score
386
Change your hosting + install Wp Rocket. That's 90% of optimization right there
 

pravinlpatel

Regular Member
Joined
Jul 26, 2014
Messages
406
Reaction score
106
At the base host always add most of values to increase site speed and you can top up the same using Cache Plugin + CDN.

Async JavaScript plugin is must try for you along with Cloudflare CDN. Good thing is everything is FREE :)

Try to mix and match Async JavaScript plugin with W3 total cache or any other cache plugin and you're good to go.
 

chkomze

Regular Member
Joined
Apr 4, 2016
Messages
343
Reaction score
53
How to use wp-rocket with jetpack I don’t see my stats very buggy why ?
 
Top