diff --git a/frontend/src/lib/components/FallbackImage.svelte b/frontend/src/lib/components/FallbackImage.svelte index 9572e46..18d086f 100644 --- a/frontend/src/lib/components/FallbackImage.svelte +++ b/frontend/src/lib/components/FallbackImage.svelte @@ -4,6 +4,7 @@ export let urls: string[]; export let alt: string; export let width = 300; + export let lazyLoad = false; const contentTypeFor = (url: string) => { if (url.endsWith(".webp")) { @@ -31,6 +32,7 @@ src={urls[0] || defaultAvatars[0]} {alt} class="rounded-circle img-fluid" + loading={lazyLoad ? "lazy" : "eager"} /> {:else} diff --git a/frontend/src/lib/components/PartialMemberCard.svelte b/frontend/src/lib/components/PartialMemberCard.svelte index 4efe806..a7b9320 100644 --- a/frontend/src/lib/components/PartialMemberCard.svelte +++ b/frontend/src/lib/components/PartialMemberCard.svelte @@ -46,7 +46,12 @@