Lazy load thumbnails

ご主人様
not manx 4 years ago
parent 05c03331d2
commit 47906f491d
Signed by: C-xC-c
GPG Key ID: F52ED472284EF2F4

@ -67,7 +67,7 @@
{#if file_list}
<section class="flex flex-row justify-center flex-wrap">
{#each thumb_list as thumb, i}
<img class="m-1" on:click={() => open_lightbox(i)} src="{url.root}{url.thumb}{thumb}" />
<img loading="lazy" class="m-1" on:click={() => open_lightbox(i)} src="{url.root}{url.thumb}{thumb}" />
{/each}
</section>
{/if}

Loading…
Cancel
Save