Dynamically Load jQuery

There are 1 entries for the tag Dynamically Load jQuery

Dynamically Load jQuery From Unobtrusive JavaScript Library

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 ......

Posted On Thursday, April 10, 2014 1:33 AM | Comments (0)

Copyright © intermark

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski