Ripple - Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout

匿名 (未验证) 提交于 2019-12-03 00:59:01

问题:

I am using jquery, backbonejs, underscorejs and bootstrap 3 for my mobile app project. I'm run my app in ripple. Sometimes I got this silly error in my console.

Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout  

Why it happened?

Thanks a lot in advance.

回答1:

I have set require js config option waitSeconds to 0 and the error was gone.

My Configuration:

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: '_'     }   }    }); 

hope this help



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!