Created
October 15, 2013 20:47
-
-
Save autumn-hoerr/6998417 to your computer and use it in GitHub Desktop.
Load different versions of jQuery based off HTML5 BP body classes w. Modernizr.load
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
Modernizr.load | |
test: document.getElementsByTagName("body")[0].className.match( new RegExp('(\\s|^)lt-ie9(\\s|$)' )) | |
yep: "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" | |
nope: "//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" | |
complete : -> | |
Modernizr.load | |
test: true | |
yep: ["/javascripts/plugins.js", "/javascripts/main.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment