diff --git a/src/modules/market/components/CartItem.vue b/src/modules/market/components/CartItem.vue index 36157ac..a7a79bd 100644 --- a/src/modules/market/components/CartItem.vue +++ b/src/modules/market/components/CartItem.vue @@ -8,6 +8,7 @@ :src="item.product.images?.[0] || '/placeholder-product.png'" :alt="item.product.name" class="w-16 h-16 object-cover rounded-md" + loading="lazy" @error="handleImageError" /> @@ -106,6 +107,7 @@ :src="item.product.images?.[0] || '/placeholder-product.png'" :alt="item.product.name" class="w-16 h-16 object-cover rounded-md" + loading="lazy" @error="handleImageError" /> diff --git a/src/modules/market/components/CartSummary.vue b/src/modules/market/components/CartSummary.vue index 245e513..b4b4249 100644 --- a/src/modules/market/components/CartSummary.vue +++ b/src/modules/market/components/CartSummary.vue @@ -20,6 +20,7 @@ :src="item.product.images?.[0] || '/placeholder-product.png'" :alt="item.product.name" class="w-8 h-8 object-cover rounded" + loading="lazy" />
{{ item.product.name }}
diff --git a/src/modules/market/components/ProductCard.vue b/src/modules/market/components/ProductCard.vue index 21ef2a0..9b669b5 100644 --- a/src/modules/market/components/ProductCard.vue +++ b/src/modules/market/components/ProductCard.vue @@ -6,6 +6,7 @@ :src="product.images?.[0] || '/placeholder-product.png'" :alt="product.name" class="w-full h-48 object-cover" + loading="lazy" @error="handleImageError" /> diff --git a/src/modules/market/components/ProductDetailDialog.vue b/src/modules/market/components/ProductDetailDialog.vue index e226b37..ebe7af5 100644 --- a/src/modules/market/components/ProductDetailDialog.vue +++ b/src/modules/market/components/ProductDetailDialog.vue @@ -17,6 +17,7 @@ :src="currentImage" :alt="product.name" class="w-full h-full object-cover" + loading="lazy" @error="handleImageError" />