Closed jonathanfilbert closed 3 years ago
I already tried #12074, still no luck
Okay, so I found the problem. The problem was when I queried the images using graphql, inside of fluid, I was using:
base64
tracedSVG
aspectRatio
srcWebp
srcSetWebp
originalName
and when I changed the fluid query to:
...GatsbyImageSharpFluid
it suddenly works on Safari.
I found it quite weird, but since it's already resolved, I'm going to close the issue. Should probably address this in the documentation that you have to use ...GatsbyImageSharpFluid
fragment in order to get gatsby-image
to work on Safari and ios devices.
Description
Fluid Images that are using
Img
fromgatsby-image
stuck on the svg placeholder mode and not being rendered. Normal images (I'm referring to<img src={...}/>
) on the other hand, works fine. This behavior only exist on iPhone's Safari apparently, I've tried it on my Chrome, and they are all working fine. I can't really do a check on an iPhone Safari because I am in no possession of one. I've tried addingin my
gatsby-browser.js
but still experiencing the same result.Steps to reproduce
Use Gatsby-Image with a fluid image. Here's my deployed site Open with safari on an iPhone or with an iPhone Simulator
Screenshots
This were captured on an iPhone edit: I've tried opening it with an iPhone simulator, also same result
Expected result
All images (regardless of using
gatsby-image
orimg
) should appear fineActual result
Only images that are using
img
seem to work, the ones withgatsby-image
seem to stuck on the gray svg placeholder state and not being loaded. On Safari on a mac, I've gotten multiple error messages similar to:Environment