Add priority and lazy loading to some images
This commit is contained in:
@@ -51,6 +51,8 @@ const createdAt = usePersianTimeAgo(new Date(date.value));
|
||||
|
||||
<NuxtImg
|
||||
:src="image"
|
||||
loading="lazy"
|
||||
fetch-priority="low"
|
||||
class="group-hover:scale-105 transition-transform duration-200 absolute size-full object-cover z-10"
|
||||
alt=""
|
||||
/>
|
||||
@@ -98,6 +100,8 @@ const createdAt = usePersianTimeAgo(new Date(date.value));
|
||||
|
||||
<NuxtImg
|
||||
v-if="variant === 'lg'"
|
||||
loading="lazy"
|
||||
fetch-priority="low"
|
||||
:src="image"
|
||||
class="group-hover:scale-105 transition-transform duration-200 absolute size-full object-cover z-10"
|
||||
alt=""
|
||||
|
||||
Reference in New Issue
Block a user