Created
March 5, 2012 20:28
-
-
Save abbotto/1980886 to your computer and use it in GitHub Desktop.
A Multi-Fallback Script Loader for jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* A Multi-Fallback Script Loader for jQuery | |
By Jared S. Abbott */ | |
if(typeof($) != 'function' || 'undefined'==typeof jQuery){document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));} | |
else if(typeof($) != 'function' || 'undefined'==typeof jQuery){document.write(unescape("%3Cscript src='http://ajax.microsoft.com/ajax/jquery/jquery-1.7.1.min.js' type='text/javascript'%3E%3C/script%3E"));} | |
else if(typeof($) != 'function' || 'undefined'==typeof jQuery){document.write(unescape("%3Cscript src='js/libs/jquery-1.7.1.min.js' type='text/javascript'%3E%3C/script%3E"));} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
“The value of a man resides in what he gives and not in what he is capable of receiving.”
~ Albert Einstein ~