Could you provide a piece of code to use the filter you mention?
Sure, you would need something like this in either your functions.php or in a seperate plugin (see example autoptimize_helper.php_example);
add_filter('autoptimize_filter_js_defer','my_ao_override_defer',10,1);
function my_ao_override_defer($defer) {
return " async ";
}
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.
you're absolutely right :-)
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.
Makes sense at first sight, I might indeed do just that for the next release.
frank