Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Change the tag of loading="lazy" attribute placement for it to work properly on item images. (#486)

EdWorth120f317bb6d886f
diff --git a/frontend/components/Item/Card.vue b/frontend/components/Item/Card.vue
index 4b8997a7..c56c7c8a 100644
--- a/frontend/components/Item/Card.vue
+++ b/frontend/components/Item/Card.vue
@@ -4,6 +4,7 @@
<img
v-if="imageUrl"
class="h-[200px] w-full rounded-t border-gray-300 object-cover shadow-sm"
+ loading="lazy"
:src="imageUrl"
alt=""
/>
@@ -12,7 +13,6 @@
v-if="item.location"
class="badge rounded-md text-sm shadow-md hover:link"
:to="`/location/${item.location.id}`"
- loading="lazy"
>
{{ locationString }}
</NuxtLink>