dlang / D-Blog-Theme

WordPress theme for dlang.org/blog
3 stars 3 forks source link

Pageload is over 10 seconds #3

Closed wilzbach closed 8 years ago

wilzbach commented 8 years ago

have a look yourself:

image

maybe we can

CyberShadow commented 8 years ago

use the already cached style.css from dlang.org and just provide a tiny css files with modifications? (same goes for the logo and other shared resources)

Bad idea. dlang.org changes may then break the blog.

JackStouffer commented 8 years ago

@mdparker Were you able to get gzip on the server?

mdparker commented 8 years ago

@JackStouffer Thanks for the reminder. I've just fired off an email.

mdparker commented 8 years ago

@JackStouffer gzip was enabled a couple of days ago. Until I get a cache plugin working, not sure how that's going to hold up with dynamic content. FYI, I got 404 error pages properly configured as well.

@wilzbach How does the load time look now after Jack's changes and with gzip enabled?

mdparker commented 8 years ago

@wilzbach Is this good to close now?

wilzbach commented 8 years ago

@wilzbach How does the load time look now after Jack's changes and with gzip enabled?

It's at ~2.5s at my machine now. Great job @JackStouffer & @mdparker!

@wilzbach Is this good to close now?

Are you sure gzip is enabled?

image

https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fdlang.org%2Fblog%2F

There would still be some stuff to optimize, e.g.

but I don't want to annoy you with this so much, writing good content is way more important ;-)

mdparker commented 8 years ago

Are you sure gzip is enabled?

Jan assured me it is. I'll look into it.

font-awesome is loaded twice

This one is beyond me right now, but I'll dig into it at some point if no one else gets there first.

ace.js (100kB compressed) is loaded by default

I really do not want to give up the convenience of the syntax highlighter plugin I'm using! It integrates directly with the WP post editor so I never have to remember the specific CSS classes (something I always forget with the plugin I'm using on The One with D).

Now that I've got URL rewriting enabled, I'm going to install a cache plugin that uses it. That should help a bit.

mdparker commented 8 years ago

OK. Learned something new today. Compression was enabled on the server, but I had to edit the .htaccess to make use of it. I always thought it was automatic. PageSpeed no longer suggests compression, so it appears to be working. I'll look into trimming more fat off as I can, so I'll keep this open a bit longer.

mdparker commented 8 years ago

Should be even better now. Got caching enabled and more stuff compressing. I'll try to work on more of PageSpeed's recommendations later.

mdparker commented 8 years ago

I'm assuming I can close this now.