Twitter bootstrap Ripple-未捕获错误:模块的加载超时:apphttp://requirejs.org/docs/errors.html#timeout
我正在使用jquery、backbonejs、下划线JS和Bootstrap3进行我的移动应用程序项目。我正在ripple中运行我的应用程序。有时我在控制台里犯了这个愚蠢的错误Twitter bootstrap Ripple-未捕获错误:模块的加载超时:apphttp://requirejs.org/docs/errors.html#timeout,twitter-bootstrap,backbone.js,google-chrome-extension,ripple,Twitter Bootstrap,Backbone.js,Google Chrome Extension,Ripple,我正在使用jquery、backbonejs、下划线JS和Bootstrap3进行我的移动应用程序项目。我正在ripple中运行我的应用程序。有时我在控制台里犯了这个愚蠢的错误 Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout 为什么会这样 非常感谢。我已经将require js config option waitSeconds设置为0,错误消失了 我的配置
Uncaught Error: Load timeout for modules: app
http://requirejs.org/docs/errors.html#timeout
为什么会这样
非常感谢。我已经将require js config option waitSeconds设置为0,错误消失了 我的配置:
require.config({
baseUrl: 'app/lib',
paths: {
app: '../js',
tpl: '../tpl'
},
urlArgs: "bust=" + (new Date()).getTime(),
waitSeconds: 0,
shim: {
'zepto': {
exports: '$'
},
'backbone': {
//These script dependencies should be loaded before loading
//backbone.js
deps: ['zepto', 'underscore'],
//Once loaded, use the global 'Backbone' as the
//module value.
exports: 'Backbone'
},
'underscore': {
exports: '_'
}
}
});
希望这有帮助