Hi Jon;
Untick the “force JS in head” option, that should fix the render-blocking warning.
hope this helps,
frank
Thanks for the super fast response!
Unfortunately, that seems to make it worse as I now get “Your page has 2 blocking CSS resources.” as opposed to 1; although these are for CSS instead, so it’s different. I have no idea why fixing JS would create an issue with CSS, but I’m fairly new to all this. They are:
https://gatehealing.com/wp-content/cache/autoptimize/css/autoptimize_4cdbba36b5c9a4ed38105419073bead5.css
https://gatehealing.com/wp-content/cache/autoptimize/css/autoptimize_4613e3b5e5eaa77353f41b0de9055d2c.css
Fingers crossed that it’s just another check box to change!
Jon
***EDIT*** I’ve tried changing the checkboxes in a few configurations, including where they were before, and I’m still getting 2 render blocking notices now, so it may not be anything with your suggestion. I am using CloudFlare CDN, but I don’t know if that would cause this.
***2nd EDIT*** And now the js render blocking message is back, but only for desktop version??
well …
for JS; make sure “force in head” is unchecked
for CSS; consider switching to “inline all CSS” (easy) or “inline & defer CSS” (difficult but bettter), see FAQ for more info on the difference and how to proceed.
frank
After playing with endless combinations of check boxes being checked, I think I have found the best combo so far (just in case this comes up, it may help another user). An X means “checked box”, O means “not checked”:
*note: regarding CDN options–filling this in gets rid of my images, but my homepage is not my blog page.
HTML Options
Optimize HTML Code? X
Keep HTML comments? O
JavaScript Options
Optimize JavaScript Code? X
Force JavaScript in <head>? O
Also aggregate inline JS? X
Exclude scripts from autoptimize: I just left this as is
Add try-catch wrapping? O
CSS Options
Optimize CSS Code? X
Generate data: URIs for images? X
Remove Google Fonts? X (I don’t use them)
Also aggregate inline CSS? O
Inline and Defer CSS? O
Inline all CSS? X
Exclude CSS from Autoptimize: I left this as is
CDN Options
CDN Base URL: Left blank until I find out how to do this so it doesn’t leave my images blank
Cache Info
Cache folder: should be prepopulated for you
Can we write? Yes
Cached styles and scripts should be prepopulated
Save aggregated script/css as static fiels? X
I hope this helps you help some other folks out . . . if you see any of these settings that I could change to improve further, please let me know.
Thanks again for the plugin. Wish I would have found it a few weeks ago!
Jon
thanks for sharing jon! 🙂