try to fix loader

This commit is contained in:
isUnknown 2024-09-17 15:16:54 +02:00
parent caf58781ef
commit 53c7749789

View file

@ -22,13 +22,15 @@ document.addEventListener("DOMContentLoaded", () => {
});
nodes.images.forEach((image) => {
if (image.complete) {
show(image);
} else {
image.addEventListener("load", () => {
setTimeout(() => {
if (image.complete) {
show(image);
});
}
} else {
image.addEventListener("load", () => {
show(image);
});
}
}, 10);
});
// Key shortcuts