next/future/image
with a blurred placeholder shows double images when JS is disabled
#38621
Closed
1 task done
Labels
Image (next/image)
Related to Next.js Image Optimization.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 103.0.5060.114, Chrome Canary 105.0.5177.0, Firefox 102.0.1
How are you deploying your application? (if relevant)
No response
Describe the Bug
There's something going on with the
<noscript>
behavior ofnext/future/image
that I can't quite figure out...The original
next/image
withplaceholder="blur"
simply falls back to a normal image tag when JavaScript has been disabled, but the future version either:Expected Behavior
One image displayed per one
<Image />
component, whether or not JavaScript is enabled in the browser.Link to reproduction
https://github.com/jakejarvis/next-future-image-bug
To Reproduce
I've tested this in both Chrome and Firefox. To reproduce this specific behavior, JavaScript must be disabled from the dev tools panel followed by a refresh.
The reproduction is deployed to Vercel at https://next-future-image-bug.vercel.app/. This shows the two identical images next to each other.
Or, clone the reproduction repo locally (
git clone https://github.com/jakejarvis/next-future-image-bug.git
andnext dev
) to see the case where there is one blurred image and one clear image side-by-side.Both sections use the same statically imported JPG with
placeholder="blur"
being the only other prop set, i.e.:The text was updated successfully, but these errors were encountered: