From b2ea7b87458cfefc5791a6f075bd5631d7855fd2 Mon Sep 17 00:00:00 2001 From: madrilene Date: Tue, 4 Jun 2024 12:17:41 +0200 Subject: [PATCH] setting the corresponding deconding value --- src/_config/shortcodes/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_config/shortcodes/image.js b/src/_config/shortcodes/image.js index 03bfc02..0ef9c1a 100644 --- a/src/_config/shortcodes/image.js +++ b/src/_config/shortcodes/image.js @@ -75,7 +75,7 @@ export const imageShortcode = async ( height: lowsrc.height, alt, loading, - decoding: 'async' + decoding: loading === 'eager' ? 'sync' : 'async' }); const imageElement = caption