From 21f96265141122675d5e635e0e31fb2dc6e123a9 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 5 Aug 2025 21:17:26 +0300 Subject: feat: small perf adjustment --- src/components/common/Image.astro | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/common/Image.astro') diff --git a/src/components/common/Image.astro b/src/components/common/Image.astro index d113b68..701d343 100644 --- a/src/components/common/Image.astro +++ b/src/components/common/Image.astro @@ -37,6 +37,11 @@ if (!props.decoding) { props.decoding = 'async'; } +// Add fetchpriority="high" for eager loading images (LCP optimization) +if (props.loading === 'eager' && !props.fetchpriority) { + props.fetchpriority = 'high'; +} + const _image = await findImage(props.src); let image: ImageType | undefined = undefined; -- cgit v1.2.3