diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 22:04:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 22:04:32 -0800 |
| commit | 0782781663b7f550eaae498ae3e430384afaf739 (patch) | |
| tree | 27db42dea69f486a9f097d9a9f355eb6f7d88ba0 /src/components/Image.svelte | |
| parent | f73a6be565bace826404d470b8e8a8c1a25eb19e (diff) | |
| download | coinos-ui-0782781663b7f550eaae498ae3e430384afaf739.tar.gz coinos-ui-0782781663b7f550eaae498ae3e430384afaf739.zip | |
lighthouse improvements
Diffstat (limited to 'src/components/Image.svelte')
| -rw-r--r-- | src/components/Image.svelte | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/components/Image.svelte b/src/components/Image.svelte index d03c20c3..159a817f 100644 --- a/src/components/Image.svelte +++ b/src/components/Image.svelte @@ -1,5 +1,20 @@ <script lang="ts"> - let { image, style } = $props(); + let { image, style, loading = undefined, width = undefined, height = undefined, fetchpriority = undefined }: { + image: string; + style?: string; + loading?: "lazy" | "eager"; + width?: number; + height?: number; + fetchpriority?: "high" | "low" | "auto"; + } = $props(); </script> -<img src="/images/{image}.webp" alt={image} class={style} /> +<img + src="/images/{image}.webp" + alt={image} + class={style} + {loading} + {width} + {height} + {fetchpriority} +/> |
