Blocking CSS resources and Minify HTML still showing
-
I have Autoptimize set optomize HTML, Javascript and CSS. When I run Google PageSpeed test I still get the following errors:
1. Minifying https://www.travelhackguy.com/ could save 611B (5% reduction) after compression.
2. Optimize CSS Delivery of the following:
A.) https://cdn2.travelhackguy.com/wp-content/cache/autoptimize/css/autoptimize_48538e4ee24ee9e46e1d07afda27f274.css
B.) https://cdn1.travelhackguy.com/wp-content/cache/autoptimize/css/autoptimize_0c85596ca47c7beadc375a6d97e8958b.cssAny ideas?
-
hi powerman572;
regarding HTML minification; you appear to have “Keep HTML comments” on?regarding optimize CSS delivery; you can try either “inline CSS” or “inline & defer”. there’s no “best” option really, it depends on your context & the amount of effort you want to invest. there’s more info in the FAQ on inlining & deferring CSS.
hope this helps,
frankI don’t think HTML comments are on. I’ve never seen this setting anywhere. Where would it be?
well, I see comments in the HTML, so … you can check the AO config-page, 2nd option “keep HTML comments”.
Thank you! That worked! 1 last question. Google is giving me 1 last error:
Optimize CSS Delivery of the following:
https://fonts.googleapis.com/css?family=Roboto:400,700|Sintony:400,700I found this link in my header.php file. Could I somehow fix this by storing the font on my server or something?
Done! I removed the Google fonts line and my score shot up to 94/100 for Mobile and 95/100 for desktop!
This plugin is ABSOLUTELY AMAZING!!!
Thank you so much for the support!!
glad you’re happy! 🙂
frank
Hi Frank
I installed Autoptimize for few days specially because of “defer parsing of javascript” that GTMetrix says. your plugin really worked for that. I have W3 total cache too and as you suggested I disables Minify setting in it and use your plugin’s HTML, Javascript and CSS optimization. and here are the changes before Autoptimze and after that:
Recommendation before after
Defer parsing of JavaScript 55 100
Inline small CSS 78 84
Inline small JavaScript 92 100
Optimize the order of styles and scripts 100 85
Avoid CSS @import 100 85
and some other minor differents. Page speed score didn’d change and steel is 79% (I have always bad points on my images).
My Total number of requests came down from 87 to 49 and that’s huge, thanks.YSlow Grade growth from 81 to 88%.
I didn’t run PageSpeed Insights before the plugin but now I checked that and you can see the results for my website: http://www.tamtaragh.com
63/100!! and my site is really slow!!
again bad points on images, and these too:Remove render-blocking JavaScript:
http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.jsOptimize CSS Delivery of the following:
http://www.tamtaragh.com/…ize_41fafcebfef68032cc953e8259943472.css
http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700
http://fonts.googleapis.com/css?family=Dancing+Script
http://www.tamtaragh.com/…ize_92e08cbd425c405250f074ea9b611259.css
http://www.tamtaragh.com/…admin/admin-ajax.php?action=jckqv_styles
http://fonts.googleapis.com/css?family=Lato%3A700I didn’t enable Force Javascript in head and looks for scripts in head becaause it cause “DEFER PARSING OF JAVASCRIPT” in gtmetrix! and didn’t enable look for styles in head,deffer CSS loading and inline all CSS.
where is the problem?regarding jquery on googleapis’; AO does not aggregate external JS (i.e. on another domain).
regarding CSS:
* the fonts googlepapis: same remark as for jquery
* jckqv_styles; AO only aggregates static CSS-files (i.e. whatevername.css), which this is not.
* the 2 autoptimize CSS-files; have a look at the FAQ on how to make CSS non-blockinghope this helps,
frankThanks for fast response, I’m newbie to wordpress and don’t know any coding. Sorry to ask, for jquery, fonts googlepapis and jckqv_styles I think you say AO won’t do anything, am I understand right?
and for the the 2 autoptimize CSS-files do you mean to enabling defer CSS loading? because I did that and have problems in my homepage loading.
for jquery, fonts googlepapis and jckqv_styles I think you say AO won’t do anything, am I understand right?
indeed
for the the 2 autoptimize CSS-files do you mean to enabling defer CSS loading
defer is not that simple, but you could try to “inline all css”.
frank
Thank you so much.
I would try that.Hi again Frank
why is my AO cache get bigger and bigger until I click on “save and empty cache” button in AO settings!?(the biggest quantity I saw was 650-700 MB)Hi Tahoom;
There’s a FAQ-entry for that 🙂Happy hunting,
frankHey Frank,
I’m wordpress stupid and it took me a while to figure out how to use Autoptimize plugin (specifically using the inline and defer CSS option).
However, I still have 2 blocking CSS resources
http://fonts.googleapis.com/…ly=Open+Sans%3A300%2C400%2C700&ver=4.3.1
http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700I’ve noticed that PowerMan572 had similar problem and he wrote back to you that he removed the google fonts line and that shut up his Mobile score… however I’m missing your advice as how to do that.
thank you Frank!
Oskar
the upcoming AO 2.0 will have an option to remove google fonts, but for now you can use https://wordpress.org/plugins/disable-google-fonts/ which is supposed to do the same (haven’t tries it myself though).
hope this helps,
frank
The topic ‘Blocking CSS resources and Minify HTML still showing’ is closed to new replies.