Does anyone know how to make the output from $this->assets->outputJs(); an async javascript?
At the moment, I'm doing this just to get it working:
ob_start();
$this->assets->outputJs("jsHeader");
$contents = ob_get_contents();
ob_end_clean();
echo str_replace('<script ', '<script async ', $contents);
What I would prefer is a more beautiful solution.