pull/1/head
Jan Umbach 2024-05-30 13:06:49 +02:00
parent 15ba6f33f9
commit 19734c1359
1 changed files with 5 additions and 5 deletions

View File

@ -80,14 +80,14 @@
//animejs fade in
//dom ready
console.log("document.readyState",document.readyState)
if (document.readyState !== 'loading') {
if (document.getElementById('anime-script').readyState === 'complete' || document.getElementById('anime-script').readyState === 'loaded'){
animate();
} else {
document.addEventListener('DOMContentLoaded', function() {
} else {
document.getElementById('anime-script').addEventListener('load', function() {
animate();
});
}
}
}
}
}