Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Preload on Image #70

Open
timvandevelde opened this issue Dec 31, 2022 · 0 comments
Open

[feature request] Preload on Image #70

timvandevelde opened this issue Dec 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@timvandevelde
Copy link

Related to #58
V4+ now has fetchPriority which is great, but not supported in all browsers.

Feature request: Preload on Image like next/image
https://nextjs.org/docs/api-reference/next/image#priority
https://web.dev/preload-responsive-images/

I have currently created my own PreloadImage component with addition to <Image>

<Head>
  <link
    rel="preload"
    as="image"
    href={image.responsiveImage.src}
    imagesrcset={image.responsiveImage.srcSet}
    imagesizes={image.responsiveImage.sizes}
  />
</Head>
<Image ...

Would be great to have this as prop to be able to optimize for LCP

@matjack1 matjack1 added the enhancement New feature or request label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants