stevepedwards.com/DebianAdmin linux mint IT admin tips info

WordPress Optimization Steps by https://www.keycdn.com/blog/google-pagespeed-insights-wordpress/

A pretty definitive step process to gain as high a website reading in Google Insights for your Worpress Site on Apache servers, and speed up page loading perception from click to visual to 2 secs. See Post end for results test comment.

First see what Insights complains about for your site here:

https://developers.google.com/speed/pagespeed/insights/

Run through the improvements and suggested WP Plugins here:

https://www.keycdn.com/blog/google-pagespeed-insights-wordpress/

Optimus Bulk Optimizer

It might take a while until all images are optimized. This depends on the amount and size of the images.

Note: Do not close this tab during the optimization process.

Completed 1134 / 1325

After completing the tweaks I could, I get a minimal improvement score wise, but a better understanding of what is involved but will know by page load times later:

My landing page .htaccess file now contains this:

# stevepedwards.com .htaccess
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

<IfModule mod_headers.c>
# WEEK
<FilesMatch ".(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>

To search for your .htaccess file you need to enable show hidden files in Settings:

A key question becomes; which of all the .htaccess files should have the additional lines added? Just the main WP site  www.stevepedwards.com/debianadmin, or the others found in the search results of cPanel:

Note that www.stevepedwards.com cannot benefit from the Plugins as it is not a WP site, just an index.html in my account /home folder, so only gets 85/100 for mobile. The tweaks would need to be done manually in the html code etc.

For DebianAdmin, the site is still available but I'm getting the 404 error, but the site is fine - it's a google Insights access issue explained in the blog:

This really seems to improve things as I've just clicked 5 of my Posts at 19.20 and each loads in about 2 secs - so unless the Internet is really quiet at the mo...!

Post size makes no odds either - one of my very largest Posts still gets a page visual in 2 secs - key to viewers not moving off site.

16/3/17

Just found out google have changed ranking algo to penalise non SSL sites too - I installed wp-force-ssl plugin which also secured my landing page:

This made no load times difference either.

Comments are closed.

Post Navigation