Closed jarrettj closed 9 years ago
Is it possible to add the async attribute to a script tag?
Been reading https://developers.google.com/speed/docs/insights/BlockingJS
I've done a string replace on the script:
$script = $this->plugin('HeadScript')->toString(); $scriptAsync = preg_replace('/<script/', '<script async', $script); echo $scriptAsync;
Is it possible to add the async attribute to a script tag?
Been reading https://developers.google.com/speed/docs/insights/BlockingJS