try to fix image loading problem

This commit is contained in:
isUnknown 2024-09-19 19:14:23 +02:00
parent 7b12a7274d
commit cdf5c988a1

View file

@ -31,7 +31,18 @@ document.addEventListener("DOMContentLoaded", () => {
});
}
});
}, 100);
setTimeout(() => {
nodes.images.forEach((image) => {
if (image.complete) {
show(image);
} else {
image.addEventListener("load", () => {
show(image);
});
}
});
}, 500);
}, 50);
// Key shortcuts
window.addEventListener("keyup", (event) => {