From 6f7a3fe18096c59c213356e6e52a2ef4f259352a Mon Sep 17 00:00:00 2001 From: Florian Greistorfer Date: Fri, 6 Feb 2026 12:19:15 +0100 Subject: [PATCH] ugh --- templates/functionality.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/functionality.js b/templates/functionality.js index 0086590..9d68085 100644 --- a/templates/functionality.js +++ b/templates/functionality.js @@ -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); } }