Last active
January 4, 2021 09:40
-
-
Save arijitMondal/2e700dabc31abd277556334de0de8707 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Head> | |
<link | |
rel="preload" | |
href={imageUrl} | |
as="image" | |
imagesrcset={ | |
`${imageUrl} 1200w, | |
${imageUrl}?w=200 200w, | |
${imageUrl}?w=400 400w, | |
${imageUrl}?w=800 800w, | |
${imageUrl}?w=1024 1024w` | |
} | |
/> | |
</Head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment