-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
NextJS: Allow disabling next/image lazy loading #21909
NextJS: Allow disabling next/image lazy loading #21909
Conversation
@martinnabhan Thank you so much for your contribution. Your PR would introduce a breaking change where people might rely on lazy loading behavior. Instead, this option should be configurable. Let's add it to the |
I thought that might be the way to go! I'll see if I can turn it into a parameter some time this week. |
6ab3a72
to
e06f67e
Compare
e06f67e
to
fc49e62
Compare
fc49e62
to
0d64367
Compare
ca42384
to
614b8ef
Compare
@valentinpalkovic Thank you for approving! What's the status on this? |
614b8ef
to
0a29a0b
Compare
…oading Allow disabling next/image lazy loading
What I did
next/image
lazy loads images by default. When using Storybook (and especially Chromatic) we usually want images below the fold to load as well so they show up in snapshots. This pull request setsnext/image
'sloading
property toeager
which disables lazy loading.How to test
next/image
and place an image below the foldChecklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]