try to fix image loading problem
This commit is contained in:
parent
7b12a7274d
commit
cdf5c988a1
1 changed files with 12 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue