diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-08-05 21:17:26 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-08-05 21:17:26 +0300 |
| commit | 21f96265141122675d5e635e0e31fb2dc6e123a9 (patch) | |
| tree | 4525a0bfda3d84818858465d8a8527617be39c7b /src/components/common | |
| parent | 35a41d5d0a28dcf7b283f74f7133f621cf961ee9 (diff) | |
feat: small perf adjustment
Diffstat (limited to 'src/components/common')
| -rw-r--r-- | src/components/common/Image.astro | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
