The following JS code is executed in the Body of a page, before the entire document has finished loading. The Head is already finished loading:
-----
var scriptelement = document.createElement("script");
scriptelement.setAttribute("type", "text/javascript");
scriptelement.setAttribute("charset", "utf-8");
scriptelement.setAttribute("src", "foobarauieboegia a real path here");
document.getElementsByTagName("head").item(0).appendChild(scriptelement);
------
this works fine in Chrome and FF, but is freezing IE.
document.getElementsByTagName("head").item(0) works..it's the appendChild that is causing IE to freeze. any ideas?
-----
var scriptelement = document.createElement("script");
scriptelement.setAttribute("type", "text/javascript");
scriptelement.setAttribute("charset", "utf-8");
scriptelement.setAttribute("src", "foobarauieboegia a real path here");
document.getElementsByTagName("head").item(0).appendChild(scriptelement);
------
this works fine in Chrome and FF, but is freezing IE.
document.getElementsByTagName("head").item(0) works..it's the appendChild that is causing IE to freeze. any ideas?
