Hi ben52;
Deferring CSS indeed is not a simple “configure and forget”-solution, but requires one to extract “base CSS” and inline it in the head (between noptimize-tags) as explained in the FAQ. In 1.9 this will probably become (slightly) easier (not the “extract base CSS”-part, but the inlining.
frank
Thread Starter
ben52
(@ben52)
Thanks Frank,
i will let the option defer unchecked, until your new version 1.9
i need to defer, because in gtmetrix i getting only 55 on defer js
have a good day.
I’m slightly confused, as the topic was defer CSS, not JS.
Anyway; Aggregated & minified JS is deferred by default, except if you “force JS in head” or if you exclude certain JS from being optimized;
Thread Starter
ben52
(@ben52)
I got it frank. i unchecked force JS in head
now from 55 drop to 88
Thanks
Ben
great! make sure to test your site though; some JavaScript (esp. jQuery-stuff) does not like to be deferred.
Thread Starter
ben52
(@ben52)
i have now problem only with the plugin scroll to top
i dont know which js i will esclude:
jcwp-scroll-to-top
JCUCNMobile_Detect
jcScrollTop.min
any help will be appreciate
Thanks
trial and error is your friend. I would start excluding “jcwp-scroll-to-top, jcScrollTop.min” and see if that works. If these rely on jQuery, you might also have to exclude that.
Thread Starter
ben52
(@ben52)
Hi Frank,
in my site i use wp super cache + your excellent plugin
in my cloudflare there is an option in performance sitting to Auto Minify (Web optimization) js, css, html
can i use this or it will make a conflict with autoptimize
same question for the option : Rocket Loader (Web optimization)
Thanks
Ben
well, autoptimize does just that, so the correct thing to do would be to pick your favorite.
maybe do some tests comparing performance with and without autoptimize vs cloudflare auto minify and tell us here what the results are, will you? π
Thread Starter
ben52
(@ben52)
Hi Frank,
only autoptimize
Page load time: 3.03s
autoptimize + cloudflare
Page load time: 3.47s
only cloudflare:
Page load time: 3.18s
Yours is better
that’s great, thanks for the feedback ben52!