-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Milestone
Description
What version of Next.js are you using?
11.1.0
What version of Node.js are you using?
12.22.1
What browser are you using?
Chrom, Firefox, Safari
What operating system are you using?
macOS
How are you deploying your application?
next dev, next start
Describe the Bug
When rendering an image with next/image that has a blur placeholder set:
If JavaScript is disabled in the browser, the img tag with blur placeholder as a background is shown on top of the noscript image. See this screenshot:
And this is the DOM showing that the later img overlaps the noscript img:
We could solve this with some CSS trickery like:
noscript + img[data-nimg] {
visibility: hidden;
}But I think it would be best to change the order of both elements (but it's not clear to me if the order is on purpose here).
Expected Behavior
No blur placeholder should be visible when images are loaded with JavaScript disabled.
To Reproduce
- Open the placeholder example in https://github.com/vercel/next.js/blob/master/examples/image-component/pages/placeholder.js
- Disable JS in the browser, reload the page
- The blur placeholder should stay visible on top of the actual image

