docs(app): improve images lazy loading

This commit is contained in:
Benjamin Canac
2025-04-02 14:28:35 +02:00
parent 36c24ffe5c
commit 5025e15d14
6 changed files with 17 additions and 10 deletions

View File

@@ -81,6 +81,7 @@ useSeoMeta({
:key="index"
v-bind="logo"
class="h-6 shrink-0 max-w-[140px] filter invert dark:invert-0"
loading="lazy"
>
</UPageMarquee>
<UContainer>

View File

@@ -67,7 +67,7 @@ useSeoMeta({
:items="(template.images as any[])"
dots
>
<NuxtImg v-bind="item" class="w-full h-full object-cover" width="576" height="360" />
<NuxtImg v-bind="item" class="w-full h-full object-cover" width="576" height="360" loading="lazy" />
</UCarousel>
<Placeholder v-else class="w-full h-full aspect-video" />
</Motion>