I am tasked with dynamically injecting jQuery into each page if it is not already loaded from an Unobtrusive JavaScript Library. The normal way of injecting a script tag would be: Code Snippet var jq = document.createElement('scr... jq.src = 'https://ajax.googleapis.co... jq.onload = function () { initJQuery(); }; var h = document.getElementsByTagNa... h.appendChild(jq); However, this will never work on IE8 or IE7, because the .onload callback is never ......