GTMetrix minification score
-
Hi there, we are currently updating our website at the moment on a test site (once we are happy we upload the changes to the main one). On our GTMetrix score it keeps stating that wp-content/cache/autoptimize/js/autoptimize…js needs minifying however i’ve minified all documents through hummingbird?
Is there any support? I would like to keep the site private as it’s not open for public use.
-
Given Autoptimize does CSS/ JS optimization (incl. minification) you should leave those optoins off in Hummingbird to avoid conflicts dxzz. If GTmetrix keeps complaining we can see what the next steps/ explanation should be.
Update: I have removed the other plugins except hummingbird (deactivated currently) and now i am using WP Super Cache and Autoptimize.
I am still having the same message appear on GTMetrix.
On Google PageSpeed Insight this appears under Serve static assets with an efficient cache policy:
…js/autoptimize_d076216….js
…css/autoptimize_e286a34….cssMinify JS:
…js/autoptimize_d076216….jsUnder eliminate render blocking:
…css/autoptimize_e286a34….css(test.docere.co.uk)
…css/autoptimize_single_a64ac5e….css(test.docere.co.uk)
…css/dashicons.min.cssAny guidance and clearance on how to resolve the issues is appreciated.
-
This reply was modified 6 years, 1 month ago by
dxzz.
OK, so for cache policy either configure your webserver (https://varvy.com/pagespeed/cache-control.html) or untick the “static files” option on AO’s main settings page.
for eliminate render-blocking; look into “inline & defer CSS”, see AO FAQ for more info.
for minify JS; would have to see the file somehow to comment, but what might be happening is that there are JS-files which claim to be minified (filename ending in min.js) upon which AO does not (re-)minify them. Additionally AO does not remove “important” comments, which generally hold copyright information.
hope this helps,
frankHi Frank thanks for your reply. Unticking the options leads to my website breaking. Maybe configuring the webserver be our best option?
Our page is pretty large do you recommend doing this option?
I can privately message you maybe if you would like to see the files and the website so you see can see what i’m working with?
Kind regards,
DxzzMaybe configuring the webserver be our best option?
that is always the better approach, yes.
I can privately message you maybe if you would like to see the files and the website so you see can see what i’m working with?
sure, you can mail the URL to futtta-at-gmail-dot-com.
Thanks I’m messaged you, please let me know if you have not received this.
That is one _very_ big JS file (1.3MB, although luckily it is compressed to 377kb while transferred) you have there dxzz, you might want to try to cut down on JS used. I indeed see some lines in there that are not minified even though the filenames says so (e.g. /assets/vendor/DataTables/datatables.min.js in the theme). Best way forwards if asking the developer (theme in this case) to either minify the file or to remove the
.minfrom the filename.hope this clarifies,
frankYeah you see my issue now lol! Thanks i’ll contact the theme developers now. If you look on pagespeed insights you can see i get remove unused css now, how can i fix this? We’re trying to improve our mobile score numbers as they are low. Do you have any recommendations through the autoptimize settings maybe that may help or other plugins?
Kind regards,
DxzzThe unused CSS is being reported as being Autoptimize’s, but AO merely aggregates all the CSS provided by your theme & plugins, so if you (really) want to tackle “remove unused CSS” then you should look into your theme & plugins (you might be able to get some improvement using e.g. “plugin organizer” to only allow plugins to work on specific pages). Moreover the unused CSS will likely be different for different pages (or parts of your site), so that would lead to different autoptimized CSS-files being loaded on different pages.
Trying to get the CSS & JS not to be render-blocking could prove useful, look into “inline & defer CSS” for the CSS (see AO FAQ for more info), for jQuery try removing it from the JS exclusion list & test (might work, might not) and for the JS from apis.google.com try adding it to the “async javascript” field in Autoptimize Extra.
Thanks for your help. If i do come across the need for further help i will contact again.
you’re welcome, feel free to leave a review of the plugin and support here! 🙂
-
This reply was modified 6 years, 1 month ago by
The topic ‘GTMetrix minification score’ is closed to new replies.