next/image should not force async decoding, as it can slow down the overall page load and cause flashes #50524
cristianlivella
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Workaround I am using for now: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
I'm not actually sure about why
decoding="async"
is forced for next/image, but I think it should be possibile to override it, because in some cases it isn't the best choice, as it slow down the overall page load and the user can perceives flashes due to the images being shown later than the other content.For example, check exallievi-new.itispaleocapa.it, and you can see the effect I'm talking about. You can even easily spot it with PageSpeed Insights:

Here you can see the same website, but without

decoding="async"
on the images: exallievi.itispaleocapa.it.Proposal
Here move the line
decoding="async"
before{...rest}
.Beta Was this translation helpful? Give feedback.
All reactions