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" />
@@ -37,6 +38,7 @@ :src="image" :alt="`${product.name} - Image ${index + 1}`" class="w-full h-full object-cover" + loading="lazy" />
diff --git a/src/modules/market/views/CheckoutPage.vue b/src/modules/market/views/CheckoutPage.vue index 5600488..ffac5c8 100644 --- a/src/modules/market/views/CheckoutPage.vue +++ b/src/modules/market/views/CheckoutPage.vue @@ -54,11 +54,12 @@
-
diff --git a/src/modules/market/views/StallView.vue b/src/modules/market/views/StallView.vue index 9a200a1..75968ea 100644 --- a/src/modules/market/views/StallView.vue +++ b/src/modules/market/views/StallView.vue @@ -24,6 +24,7 @@ :src="stall.logo" :alt="stall.name" class="w-full h-full object-cover" + loading="lazy" @error="handleLogoError" />