Thanks for responding Frank!
Could you provide a piece of code to use the filter you mention?
The other solution works:
changing file content/plugins/autoptimize/autoptimizeScripts.php and on line 211
But the code change you provided is not correct.
Your code change - not working:
$replaceTag="</title>";
This places the combined javascript file within the title tags.
Correct code - working:
$replaceTag="<title>";
Instead of the title close tag now the open tag of the title container is used, so the javascript will be loaded before the title instead of within the title.
Why don't you make this the new default location to place the combined optimized Javascript file for the <head> section? It solves the problem of inline scripts blocking the loading of external scripts.
Rick