1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-21 22:41:21 +00:00

Add priority to images

This commit is contained in:
Daniele Pancottini 2023-07-08 11:10:27 +02:00
parent 0749022035
commit 536e1736e8
3 changed files with 3 additions and 0 deletions
site/components
common
HomePage/PolygonModal
Room/ResourceCardContent
product/ProductCardRoom

@ -78,6 +78,7 @@ export default function MarkerCardModal(props: {
setIsTransitionComplited(true) setIsTransitionComplited(true)
}, 2500) }, 2500)
} }
priority
></Image> ></Image>
) : ( ) : (
<ImageMapper <ImageMapper

@ -24,6 +24,7 @@ export default function ImageCardContent(props: {
onClick={() => openFullScreen('resource-image')} onClick={() => openFullScreen('resource-image')}
id='resource-image' id='resource-image'
alt='' alt=''
priority
src={props.resourcePath} /> src={props.resourcePath} />
</Box> </Box>

@ -87,6 +87,7 @@ export default function ProductCardRoom(props: {
layout={"fill"} layout={"fill"}
alt={"Product Image"} alt={"Product Image"}
objectFit={"contain"} objectFit={"contain"}
priority
/> />
</Box> </Box>