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

1

3

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.

Hertfordshire answered 23/12, 2013 at 3:20 Comment(0)
F
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

Ferrell answered 2/1, 2014 at 7:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.