autoptimize only optimizes CSS/ JS on your own server @beinghome9, but the sharethis.js file is on a 3rd party server. you could e.g. install the “async javascript”-plugin to try to force the sharethis-JS to load non-render-blocking.
Thanks Frank @futtta.
It worked 🙂
Hello,
I tested my website speed on Google. It suggests me to fix this problem. “Eliminate render-blocking JavaScript and CSS in above-the-fold content”. I am already using Autoptimise plugin. what should I do next to score high on this report?
look at the details of that warning; what files are marked as “render blocking”?
all of those have been asked and answered earlier in this thread @sidkarulkar and I don’t like repeating myself 🙂
There are a lot of things that go into the equation that determines how quickly site visitors begin to see content when they visit your website. Some of these things you can’t control: the speed of their internet connection, their geographic location, network congestion, and so forth. However, there are others things that you can and should control.
One tool you can use to identify speed-reducing issues that are under your control is Google PageSpeed Insights. Surely you’ve used PageSpeed Insights before (if you haven’t, this is your cue to head there before reading the rest of this article). It’s free, and pinpoints issues that are slowing down delivery of your website, such as render-blocking JavaScript and CSS.
You can read in detail at http://blogmetric.org/eliminate-render-blocking-javascript-css/
given the fact people are asking how to fix the Google PageSpeed Insight warnings, referring them to GPSI is pretty useless @blogmetric. plugging your blogposts like that -even if they mention AO favorably, for which I thank you- is frowned upon …
you can’t change the caching properties of external resources @taurusmedia.
Try Different options and I got speed of 94, but still getting an error of CSS and Js file blockage can you check the speed of my blog http://www.sizlomedia.com
Hi Frank,
I just installed and activated the autopimize plugin. The WordPress website, which I am referring to is hosted on AWS and on multiple instances(image ) behind the ELB (load balancer). And the plugin is available on each instance. Since the website is LIVE and running, before I optimize the files, wanted to confirm if there is a way to revert to my original settings in case things go haywire.
Appreciate your response on this.
Regards
Ankush
Regards
Ankush
wanted to confirm if there is a way to revert to my original settings in case things go haywire.
yep; simply disable AO and make sure to clear any page cache and you should back at the original state (AO never changes your original CSS/ JS) 🙂
Hi Frank @futtta,
Very cool plugin. I am trying to leverage it for my site, specifically to improve the PageSpeed Insights score. Currently, my above the fold content is slowing down rendering. I followed your video (https://youtu.be/k56E_7SFQoE) to eliminate render blocking css above the fold, but when I enabled Inline and Defer CSS, and pasted in the critical css, I get all my content shifted to the right, with a big white column on the left. See this image- https://ibb.co/dZsSQk
It is disabled on my site currently so the css should look correct at http://www.californiabeardco.com
After enabling the inline css and defer css, my PageSpeed Insight score actually went down to 64 from 70. Any thoughts?
Edit 1: When the inline css and defer css is enabled, I get a flash of unstyled content before the style is applied.
Edit 2: The critical CSS that was created from the generator is: html {
margin-top: 32px !important;
}
@media screen and (max-width: 782px) {
html {
margin-top: 46px !important;
}
}
and it seemed incredibly short compared to the one suggested in the video. I generated critical CSS using a different tool, which gave me a lot more css to copy, but the outcome was the same. The website style is still broken and not appearing properly.
My browser is usually maximized. When I refresh, the layout is all broken. However, if I resize the browser, then re-maximize it, the layout comes together and looks correct. I have no clue what to do about that.
-
This reply was modified 7 years ago by csterling.
-
This reply was modified 7 years ago by csterling.
-
This reply was modified 7 years ago by csterling.
@csterling; the short generated criticalcss is clearly insufficient, the one you generated with another tool could be better, but not ok yet. you’ll have to either look for (yet) another tool or try to amend the one generated with the second tool by hand?