try to fix loader
This commit is contained in:
parent
caf58781ef
commit
53c7749789
1 changed files with 8 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue