9 lines
392 B
JavaScript
9 lines
392 B
JavaScript
|
window.addEventListener("load", async function() {
|
||
|
document.getElementById("preloader").classList.add("fadeout");
|
||
|
// I don't actually know how promises or async works
|
||
|
// ¯\_(ツ)_/¯
|
||
|
// https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep
|
||
|
await new Promise(r => setTimeout(r, 250))
|
||
|
document.getElementById("preloader").style.display = "none";
|
||
|
});
|