mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-04-17 11:30:08 +02:00
ugh
This commit is contained in:
@@ -52,6 +52,7 @@ class PhotoGallery {
|
||||
|
||||
const img = document.createElement("img");
|
||||
img.src = this.shown[imgIndex]?.src || "";
|
||||
console.log("Prefetching image:", img);
|
||||
prefetchDiv.appendChild(img);
|
||||
}
|
||||
|
||||
@@ -62,6 +63,7 @@ class PhotoGallery {
|
||||
const img = prefetchDiv.querySelector(`img[src="${this.shown[imgIndex]?.src || ""}"]`);
|
||||
if (img) {
|
||||
prefetchDiv.removeChild(img);
|
||||
console.log("Cancelled prefetch for image:", img);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user