Skip to content

Instantly share code, notes, and snippets.

@gaspanik
Created May 25, 2013 08:47
Show Gist options
  • Save gaspanik/5648403 to your computer and use it in GitHub Desktop.
Save gaspanik/5648403 to your computer and use it in GitHub Desktop.
jQuery(CDN/Fallback) & Bootstrap load by Requirejs
requirejs.config({
baseUrl: '/js',
paths: {
jquery: ['//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min','jquery.min'],
bootstrap: 'bootstrap.min'
},
shim: {
'bootstrap':{deps: ['jquery']}
}
});
requirejs([
'jquery',
'bootstrap'
], function($, _bootstrap){
return {};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment