3

I am using jQuery, backbone.js, underscore.js and Bootstrap 3 for my mobile app project. I'm running my app in Ripple. Sometimes I get this silly error in my console.

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

Why does it happen?

1 Answer 1

7

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.