How 2 fix Autoptimize cache Render-blocking
-
Google pagespeed keeps telling me that sitename/wp-content/cache/autoptimize/autoptimize_fbb3650be065b6b87032c06dea79e8b5.php is render-blocking. pls how do I fix?
-
if that’s a CSS-file; inline all or inline & defer CSS. if that’s a JS-file; don’t force JS in head.
do have a look at the FAQ for more detailed info @gbengalex 🙂
It looks like a php cache file – not css or js: sitename/wp-content/cache/autoptimize/autoptimize_fbb3650be065b6b87032c06dea79e8b5.php
if you disabled the last option (serve as static file), then both JS & CSS-files are served dynamically, through PHP 🙂
so; inline/ inline & defer for CSS & don’t force JS in head and you should be fine
I always have problem with the same three files. Please how do I use Autoptimize to eliminate them from above the fold?
2) https://translate.googleapis.com/translate_static/css/translateelement.css
3) http://MYSITE/wp-content/cache/autoptimize/autoptimize_4c97896684923702c39216e86571f8f9.php
1st 2 can’t be fixed by AO (they’re files on 3rd party servers, which AO can’t aggregate)
the 3rd one can, using the fix(es) described earlier. did you try those?
Thanks again … I dont know how to try to inline the #3 – i dont even think it is css or js
More importantly Frank, I get very high speed score when I enable the following:
Optimize JavaScript Code?
Force JavaScript in <head>?
Also aggregate inline JS?
Add try-catch wrapping?HOWEVER it results in messing up my css (menu and template) and js (for videos, images etc). I have tried many different combinations of the four but i just cannot achieve the level of speed without degradation in site layout etc. I wonder if you can take a look at it for a fee? Alternatively any further suggestions?
1. it most certainly is either CSS or JS 🙂
2. forcing JS in head makes it render-blocking
3. aggregating inline JS can make your cache size grow too fast too big
4. try/catch wrapping is a workaround if you have JS errors, but no solutioncan you share your URL, I’ll first an foremost check what that autoptimize file is 🙂
Thank you. The URL is http://www.hoopvideos.net. Right now I have disabled “Also aggregate inline JS?”
I see you’re (also) using the great “above the fold” plugin, soi if you still have render blocking issue you should ask in that support forum really 🙂
Thanks Frank. Is that a hint f sarcasm I see in your “the great “above the fold” plugin” statement? LOL. I ask because I really dont know much these plugins. Is Autoptimize compatible with it? Does one make the other unnecessary?
no, no sarcasm, it is a great plugin and it is compatible with AO and it can make sense to use the two in conjunction 🙂
I am relieved!! Can you spare some time to go into my admin and help me solve these issues for a fee? I am basically going around in a circle because I dont know what to set and how to set it. I have three blogs using same theme and with the same AO and Abovethefold plugins and getting the right balance for optimizing without breaking layout has been challenging on all 3.
afraid I have no time to spare for now @gbengalex, but I know some people who maybe could, mail me at futtta-at-gmail-dot-com and I’ll put you in touch.
The topic ‘How 2 fix Autoptimize cache Render-blocking’ is closed to new replies.