trying to get a head around start up events...
so I created a fiddle http://jsfiddle.net/erichbschulz/59cDq/ for this
this:
console.log("starting");
MyInnerApp = new Backbone.Marionette.Application();
MyOuterApp = new Backbone.Marionette.Application();
MyInnerApp.addInitializer(function(options){
console.log("MyInnerApp initializer running");
});
MyOuterApp.addInitializer(function(options){
console.log("MyOuterApp Initializer running");
});
$(document).ready(function(){
console.log("$(document).ready");
MyInnerApp.start();
});
MyOuterApp.start();
console.log("end of file");
I discovered the marionette code fires before $(document).ready()... but is this always the case?
and what is the role of $(document).ready() in a marionette app?
edit: thanks to Bryan for mentioning initialize:after updated fiddle