Gatsby-plugin-image - GatsbyImage not displaying image in IE11
See original GitHub issueDescription
Upgrading from Gatsby-image to Gatsby-Plugin-Image, currently in IE11, it doesn’t seem to be able to display the image with just a blank region. Didn’t find any information on IE11 support or polyfill as this is quite new, assume this is a degradation?
Steps to reproduce
https://github.com/hazuremon/gatsby-bug-repro/ https://eager-saha-ba67b0.netlify.app/ (Open in IE11 will see a blank screen, while seeing an image in all other browsers)
Expected result
What should happen? Display image
Actual result
Briefly shows the lazyload placeholder image before seeing a blank region.
Environment
IE11
Run gatsby info --clipboard
in your project directory and paste the output here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top Results From Across the Web
gatsby-image browser support · Issue #4021 - GitHub
Although everything appears to be wired up correctly, the gatsby-browser.js I've added to gatsby-image does not appear to be working.
Read more >Gatsby-plugin-image with ie11 briefly flashes placeholder and ...
A similar issue is happening on IOS 8 and below, the placeholder appears and then disappears with no loaded image. Actually, if I...
Read more >Gatsby Images not showing - Stack Overflow
The images are not being displayed because you are returning an array ( retreatsArray ) in your getRetreats(data) function and, ...
Read more >GatsbyImage not displaying image in IE11 - Bountysource
Upgrading from Gatsby-image to Gatsby-Plugin-Image, currently in IE11, it doesn't seem to be able to display the image with just a blank ...
Read more >Gatsby Image
Note: gatsby-image is not a drop-in replacement for <img /> . ... sets up the “blur-up” effect as well as lazy loading of...
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 FreeTop 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
Top GitHub Comments
If anyone needs a quick and dirty solution to this, I noticed removing ‘position: relative’ from the picture element displays the images in ie11. Doing this with CSS globally, targeting the class the polyfill adds is fairly trivial:
.object-fit-polyfill[style] { position:static !important; }
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜