async garbage
This commit is contained in:
parent
51331aa394
commit
e9c9ee2359
1 changed files with 2 additions and 1 deletions
3
load3.js
3
load3.js
|
@ -148,13 +148,14 @@ function load_init(init_func) {
|
||||||
while (!load_complete) {
|
while (!load_complete) {
|
||||||
await sleep(100);
|
await sleep(100);
|
||||||
}
|
}
|
||||||
|
console.log("Skipping load...")
|
||||||
init_func();
|
init_func();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Not 100% safe... whatever!
|
// Not 100% safe... whatever!
|
||||||
load_in_progress = true
|
load_in_progress = true
|
||||||
load(init_func);
|
|
||||||
console.log("Using new data...")
|
console.log("Using new data...")
|
||||||
|
load(init_func);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue