Skip to content

Instantly share code, notes, and snippets.

@jakefentress
Created February 19, 2014 19:47
Show Gist options
  • Save jakefentress/9100090 to your computer and use it in GitHub Desktop.
Save jakefentress/9100090 to your computer and use it in GitHub Desktop.
Loading jQuery and main JavaScript files with YepNope
<!-- jQuery and Global Functionality -->
<script>
yepnope([{
load: '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js',
complete: function () {
if (!window.jQuery) {
yepnope('/vendor/jquery/dist/jquery.min.js');
}
}
}, {
load: ['/js/global.min.js', '/js/other.js']
}]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment