I am trying to load JQuery-Ui using a strip, but JQueryUi keeps timing when I try to load it, even when I know that the path is correct.
require.config({ paths: { jQuery: 'libs/jquery-wrapper', jQueryUi: 'libs/jquery-ui-min', jQuerySelectmenu: 'libs/jquery.ui.selectmenu', Underscore: 'libs/underscore-wrapper', Backbone: 'libs/backbone-wrapper', }, shim: {'Backbone': { //These script dependencies should be loaded before loading //backbone.js deps: ['Underscore', 'jQuery'], //Once loaded, use the global 'Backbone' as the //module value. exports: 'Backbone' }, 'jQueryUi': { deps: ['jQuery'], }, 'jQuerySelectmenu': { deps: ['jQuery', 'jQueryUi'] } } }); require([ 'jQuery', 'Underscore', 'Backbone', 'jQueryUi', 'jQuerySelectmenu' ], function(App) { require(['order!src/app'] , function (App) { App.initialize(); }); });
source share