Created
June 22, 2016 16:30
-
-
Save sigorilla/13b59fcb86f84c5afb727cdc2a6ddb48 to your computer and use it in GitHub Desktop.
jQuery for YModules
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
modules.define('jquery', function (provide) { | |
if (typeof window.jQuery !== 'undefined') { | |
provide(window.jQuery); | |
} else { | |
document.getElementById('jquery').onload = function () { | |
provide(window.jQuery); | |
}; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment