Untitled
Anonymous
javascript
05/10/2021 4:32 PM
460 B
25
Indexable
(async() => {
console.log("EDV waiting for variable");
while( typeof tarteaucitron === "undefined" ) // define the condition as you like
await new Promise(resolve => setTimeout(resolve, 1000));
console.log("EDV variable is now defined " + tarteaucitron.services);
})();
console.log("EDV above code doesn't block main function stack");Editor is loading...