diff --git a/boot/boot.js b/boot/boot.js index 14b9b4615..1e15653d0 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1750,6 +1750,7 @@ $tw.boot.executeNextStartupTask = function() { if($tw.boot.isStartupTaskEligible(task)) { // Remove this task from the list $tw.boot.remainingStartupModules.splice(taskIndex,1); +console.log("Executing task",task.name); // Execute it if(!$tw.utils.hop(task,"synchronous") || task.synchronous) { task.startup(); @@ -1783,6 +1784,16 @@ $tw.boot.isStartupTaskEligible = function(taskModule) { } } } + // Check that no other outstanding tasks must be executed before this one + var name = taskModule.name, + remaining = $tw.boot.remainingStartupModules; + if(name) { + for(t=0; t