News for hackers. Stuff that matters.
Re:Script-injected "async scripts" considered harmful by mweibel on Wednesday May 21, 2014 @01:53AM (#7776888)
Very nice article indeed.

One commonly used variant I missed in the article and I'd be interested what it's positive/negative aspects are (if there are differences at all):

    <script>
        var script = document.createElement('script');
        script.src = "http://example.com/awesome-widget.js";
        script.async = true;
        document.getElementsByTagName('head')[0].appendChild(script);
    </script>
(Note the additional async param)
Re:Script-injected "async scripts" considered harmful by d_j_s on Wednesday May 21, 2014 @09:24AM (#7778035)
All browsers since FF 3.6 default inserted scripts to async=true

http://mathiasbynens.be/notes/async-analytics-snippet

Re:Script-injected "async scripts" considered harmful by radio4fan on Wednesday May 21, 2014 @04:21AM (#7777148)
Just tried it, and it makes no difference. Still waits for the CSS to load before requesting the script.

At least, in Chrome.

Re:Script-injected "async scripts" considered harmful by igrigorik on Wednesday May 21, 2014 @11:28AM (#7778743)
It's a noop.