Skip to content

Commit

Permalink
Preload two images
Browse files Browse the repository at this point in the history
  • Loading branch information
timuric committed Dec 18, 2023
1 parent 24002a1 commit c328fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/ProductList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ProductList = ({ products }: { products: readonly ProductListItemFr
<ProductElement
key={product.id}
product={product}
priority={index === 0}
priority={index < 2}
loading={index < 3 ? "eager" : "lazy"}
/>
))}
Expand Down

0 comments on commit c328fa3

Please sign in to comment.