I just launched a new course on ES6! Use the code WESBOS for $10 off.

Strengthen your core JavaScript skills and master all that ES6 has to offer. Start Now →

Fixing a poor Google Page Speed Score

Aug 26 2015

Google Page Speed Insights gives your site a score for speed an useablilty, and while I had a great score for useability, my score for speed was a pathetic 51/100. My site is WordPress, and because of the plugin ecosystem inserts many blocking assets into your head, WordPress often gets flack for being slow.

So – armed with an hours worth of time, I set out to fix my own website while recording my progress. I’m far from a performance specialist, but hopefully this shows you that making your sites fast is a relatively simple task that can pay off huge for your users.

I mention a few WordPress/Apache specific things in this video, but the tips should apply to any site/server config.


.htaccess config:

# 1 Week
Header set Cache-Control "max-age=604800, public, must-revalidate"

<IfModule deflate_module>
  <IfModule filter_module>
    AddOutputFilterByType DEFLATE text/plain text/html
    AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
    AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
    AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
    AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
This entry was posted in Other. Bookmark the permalink.

3 Responses to Fixing a poor Google Page Speed Score

  1. Grzegorz says:

    It’s very interesting , thanks for movie:)

  2. Ron Willems says:

    Hey Wes,

    Thanks for this awesome tip. I learned again some useful ways to speed up websites.


    Greetz from the Netherlands

    Ron Willems

  3. Ryan W says:

    Thank you so much for this, Wes! I was able to follow your video very easily and clocked up at least 20+ on both mobile/desktop version speeds, plus I have more info around to

Leave a Reply

Your email address will not be published. Required fields are marked *