From 6eb64b48a2e13972d0a28e7c677533d61051e7e0 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:11:59 +0200 Subject: [PATCH] Fix bug with applayout background image not loading --- src/components/AppLayout/components/AppLayoutBackgroundImg.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AppLayout/components/AppLayoutBackgroundImg.astro b/src/components/AppLayout/components/AppLayoutBackgroundImg.astro index 862c794..58202ac 100644 --- a/src/components/AppLayout/components/AppLayoutBackgroundImg.astro +++ b/src/components/AppLayout/components/AppLayoutBackgroundImg.astro @@ -100,6 +100,7 @@ const uniqueId = getRandomId(); const img = document.getElementById(uniqueId); const parent = img.parentElement; if (!parent || !img) return; + if (img.complete) return; parent.style.animationPlayState = "paused"; img.addEventListener(