From 161f2efd137b5b89263574e98e8313c13c79037a Mon Sep 17 00:00:00 2001 From: Nikolay Mamadaev Date: Mon, 12 Oct 2026 14:00:57 +0200 Subject: [PATCH] fix: clear image placeholder after failed load --- public/js/modules/ui/image-load-placeholder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/modules/ui/image-load-placeholder.js b/public/js/modules/ui/image-load-placeholder.js index c07b1cb..252747a 100644 --- a/public/js/modules/ui/image-load-placeholder.js +++ b/public/js/modules/ui/image-load-placeholder.js @@ -20,7 +20,7 @@ function isPending(img) { if (img.hasAttribute("data-src") || img.hasAttribute("data-defer-src")) return true; const src = img.currentSrc || img.getAttribute("src") || ""; if (isTinyPlaceholderSrc(src)) return true; - return !img.complete || img.naturalWidth === 0; + return !img.complete; } function getHost(img) {