Totally Zenned
- Join Date:
- Jan 2011
- Location:
- Adelaide, Australia
- Posts:
- 1,684
- Plugin Contributions:
- 0
Help with Page Speed Optimitazions please
I am getting POOR ratings from Page Speed tests via Google Webmaster Tools so I need some advice on how best to improve my rating(s) across my sites.
Poor 63 / 100 (Desktop - Mobile is worse) This page is not optimized and is likely to deliver a slow user experience. Please prioritize and apply the recommendations below. Given that Google's focus these days is on 'optimizing customer experience' it concerns me when when I see comments like that :(
1. Properly formatting and compressing images can save many bytes of data. (This is the critical aspect - over 400kb to be saved by compression)
Images shown for optimization are those slides used in the slide show and those used in the template (all my sites are using Responsive All Business by Picaflor Azul) - so these images are not being handled by IH4 - Q can they be included to be handled by IH? ... if not is there a image compression tool I can add to ZC that will compress the images not compressed by IH?
2. Your page has 11 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
All of these resources are .css files from the above template (RAB) = I have ModPagespeed enable with the following instruction in the .htaccess file;
ModPagespeed on
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters combine_css
Q What else can be done to solve this issue?
3. Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
I have the following included in the .htaccess file however the files listed to 'Leverage browser caching' for are again .css files related to the template which I thought would be handled by the .htaccess instruction;
## Optional improvements
## Requires mod_expires to be enabled within Apache
##################
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault A300
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
ExpiresByType image/x-icon A86400
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
</ifmodule>
4. Minify HTML
Compacting HTML code, including any inline JavaScript and CSS contained in it, can save many bytes of data and speed up download and parse times.
Minify HTML for the following resources to reduce their size by 2.1KiB (15% reduction).
Minifying <https://www.treeoflifejewellery.com/> could save 2.1KiB (15% reduction) after compression.
5. Minify CSS
Compacting CSS code can save many bytes of data and speed up download and parse times.
Minify CSS for the following resources to reduce their size by 520B (59% reduction).
Minifying https://www.treeoflifejewellery.com/…_business/css/stylesheet_middleboxes.css could save 520B (59% reduction) after compression
Recommendations
You should minify your HTML, CSS, and JavaScript resources:
To minify HTML, try HTMLMinifier
To minify CSS, try CSSNano and csso.
To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.
Alternatively, the PageSpeed Module, integrates with with an Apache or Nginx web server to automatically optimize your site, including resource minification.
The last para suggests that Page Speed module should be doing this minifying as part of the overall optimization ? - confusing :dontgetit
**** for this same site I get a performance score of 88 using pingdom dotcom with an SEO score of 82 using seositechecker dotcom - not that I put absolute faith in either or any of such assessment sites however they vary greatly from Page Speed ... like it is with many other Google testing/reporting tools they tend to use old data - is that the case with Page Speed or is it analyzing the site as it sees it in that instant?
Any suggestions most warmly received.
cheers,
Mike