Skip to content

Commit

Permalink
fix: load first product image eagerly on desktop.
Browse files Browse the repository at this point in the history
Merge branch 'fix/load-img-eagerly' into 'master'

See merge request schema/origin-storefront!206
  • Loading branch information
AdrianRC committed Nov 23, 2022
2 parents 52f6426 + 088c44b commit 86327fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/products/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
<template v-else>
<div v-if="productImages">
<VisualMedia
v-for="image in productImages"
v-for="(image, index) in productImages"
:key="image.id"
:source="image"
:alt="image.alt"
:lazy-load="index > 0"
sizes="(min-width: 768px) 50vw, 100vw"
/>
</div>
Expand Down

0 comments on commit 86327fa

Please sign in to comment.