From 8591284b6ee5a7f780c106ec70b82812615041f4 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 8 Feb 2025 22:20:48 -0800 Subject: [PATCH] apply labels earlier --- src/features/accesskit/disable_gifs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/accesskit/disable_gifs.js b/src/features/accesskit/disable_gifs.js index 172769822..728906bc0 100644 --- a/src/features/accesskit/disable_gifs.js +++ b/src/features/accesskit/disable_gifs.js @@ -146,11 +146,11 @@ const processBackgroundGifs = function (gifBackgroundElements) { if (sourceUrl) { Date.now() - enabledTimestamp >= 100 && gifBackgroundElement.setAttribute(loadingBackgroundImageAttribute, ''); + addLabel(gifBackgroundElement, true); gifBackgroundElement.style.setProperty( pausedBackgroundImageVar, sourceValue.replaceAll(sourceUrlRegex, await createPausedUrl(sourceUrl)) ); - addLabel(gifBackgroundElement, true); gifBackgroundElement.removeAttribute(loadingBackgroundImageAttribute); } });