0

I'm trying to prevent a picture from loading on mobile by putting an almost empty fallback in my picture tag, but Safari ignores the source tag and always loads my fallback. It's working fine in Chrome and Webkit Edge. I'm using Safari 12, so picture and source should be supported.

<picture>
  <source type="image/jpg" srcset="[...]/image.jpg">
  <img type="image/png" src="[...]/fallback.png">
</picture>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.