Derp, you're right. Doesn't matter so long as we have an entry point
guaranteed to exist.

On Friday, April 19, 2013, Dan Callahan <notifications@github.com> wrote:
> In resources/static/common/js/crypto-loader.js:
>
>> @@ -18,7 +18,8 @@ BrowserID.CryptoLoader = (function() {
>>    function addScript(src) {
>>      var script = document.createElement("script");
>>      script.setAttribute("src", src);
>> -    document.head.appendChild(script);
>> +    var entryPoint = document.getElementsByTagName("script")[0];
>> +    entryPoint.parentNode.insertBefore(script, entryPoint);
>
> In your comments on #3287, you mention that the advice is:
>
> "append the dynamically-generated script tag after the 0th script tag."
>
> Doesn't this insert the script tag before the existing one? Does that
matter?
>
> —
> Reply to this email directly or view it on GitHub.<
https://github.com/notifications/beacon/8fP0lcsYzyxPZ6QarRi_iUbm0yGPIlgJKtNGZdQBEiq4PryiHcYLdvyBGHlAQfNi.gif
>