next/image demo doesn't render image when JS is disabled
See original GitHub issueWhat version of Next.js are you using?
v11.0.0
What version of Node.js are you using?
12.0.0
What browser are you using?
Firefox latest
What operating system are you using?
macOS
How are you deploying your application?
am not - this is a link from next docs
Describe the Bug
This URL: https://image-component.nextjs.gallery/layout-fill from the next documentation next/image page only renders two images when JS is disabled and not three.
The middle image looks to have a noscript
but it’s not resolving the image source.
Expected Behavior
next/image progressively enhances and the img
tag is used when there’s broken JS or no JS.
To Reproduce
Visit https://image-component.nextjs.gallery/layout-fill with js disabled.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
next/image - Next.js
Lazy loading is automatically disabled for images using priority . You should use the priority property on any image detected as the Largest...
Read more >Error: Image Optimization using Next.js default loader is not ...
From Next.js 12.3, you can completely disable next/image Image Optimization using the unoptimized configuration in next.config.js .
Read more >Nextjs image optimization with examples - Refine Dev
Built-in image optimization using next image component.
Read more >All you need to know about images in Next.js - DatoCMS
How To Use the Next.js Image Component · Image from 'next/image' · import fooImage from '../public/assets/foo.jpg' · function FooComponent() {.
Read more >Next.js automatic image optimization with next/image
Each of the layout values has their nuances in: The generated srcSet and sizes; Expected display or position value on ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why you disable JS in 2021?
@remy I was able to reproduce with that extension.
However the built-in way (visit
about:config
and setjavascript.enabled: false
) works fine, it loads all 3 images.I’m not sure why it doesn’t observe the
<noscript>
in this case. Seems like a bug with that extension.