mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +00:00
Split module loading into a separate startup task
Still a work in progress.
This commit is contained in:
@@ -1773,10 +1773,10 @@ $tw.boot.executeNextStartupTask = function() {
|
||||
};
|
||||
|
||||
$tw.boot.isStartupTaskEligible = function(taskModule) {
|
||||
var dependencies = taskModule.dependencies;
|
||||
if(dependencies) {
|
||||
for(var t=0; t<dependencies.length; t++) {
|
||||
if(!$tw.boot.executedStartupModules[dependencies[t]]) {
|
||||
var after = taskModule.after;
|
||||
if(after) {
|
||||
for(var t=0; t<after.length; t++) {
|
||||
if(!$tw.boot.executedStartupModules[after[t]]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user