Autoptimize; JavaScript in head and some deprecated functionality

Autoptimize 1.6.5 got just pushed out, with one new feature and one notification. The new option configures Autoptimize to output the aggregated JavaScript in the head-section instead of at the bottom of the HTML. This can be useful when some of the JavaScript needs to be loaded asap and might prove useful to make jQuery plugins behave.

The notification might be less welcome for some users; YUI compression and the CDN options are marked as deprecated in this release. YUI compression was pretty exotic and required the installation of JAVA and the YUI compression jar, so I doubt anyone was actually using this. CDN options are deprecated as well; some people reported issue that I could not reproduce or fix. As I consider CDN not to be core functionality and as it can better be accomplished using e.g. WP Super Cache (which is a must-have companion of Autoptimize anyhow), CDN will indeed also be removed from Autoptimize. Expect the deprecated parts to be removed in 1.7.0 (which isn’t planned yet).

9 thoughts on “Autoptimize; JavaScript in head and some deprecated functionality”

Hey nice keeping up with this, I’ve been an old fan of Autoptimizer. This update fixed up the problem I had with javascript in the head. Well done. ONE thing that bugs me a little, if it would be possible to put the autoptimized css link BELOW the head title in the headers.. Post title Thanks and best regards.

Glad the javascript-head issue got solved for you DJ White Hawk. Never thought about the position of CSS actually, but I am curious why you would like it after the title-element. What is the disadvantage of having it (CSS) before it (title)?

I respect your decision to pull the CDN functionality from the plugin, however I don’t see a way of getting WP Super Cache to actually serve my Autoptimize’d CSS/JS. Is there a link somewhere explaining how to do that?

I am using origin pull with a CNAME and it’s working great for media content, but I can’t get those pesky CSS/JS files to be served via the CDN.