I have hit a road block when trying to use the Dojo Loader instead of require.js to build a backbone.marionette map application. I have looked through the forums, and used this (https://github.com/odoe/ags30sample) as an example. This issue I am running into seems to be the way the scripts are loading.
90% of the time, the app fails to start with the following error: ReferenceError: Backbone is not defined TypeError: Backbone.Marionette is undefined
The strange thing is, that sometimes the app does start. I can watch the http requests in fiddler, and they are being accessed in the correct order and loaded at the correct time. I was hoping you all could take a look, and explain if I am missing something. Any help would be greatly appreciated. I am new to modular and amd design, but have completed a few non map applications using require.js backbone and marionette
//After the Main application has started, startup the application views MapManager.on("initialize:after", function () { console.log("Marionette App started"); });