Hello Futta,
Is it possible to manually change the location of placement of combined JS/CSS files in the head?
I experience that the combined JS file, that is by default placed just before the </head> closing tag, blocks the loading of any other inline javascript in the head. For example Google Analytics tracking code.
Resources in the head should be properly loaded:
- First: external CSS
- Second: external JS
- Third: inline CSS/JS
The resources order in the head as a result of using Autoptimize is:
- external (combined) CSS
- inline CSS/JS
- external (combined) JS
I want the proper order of JS and CSS resources and to do so I need to move the location of the combined JS Autoptimize file up in the head to above the inline scripts.
How can I do this?
Maybe you should integrate some tags in a future release, like W3 Total Cache offers:
<!-- headcss -->
<!-- headjs -->
<!-- bodyendjs -->
By adding the tags to the right locations, a user can point locations in the code where the combined files should be placed.
Cheers!
Rick