D
D
dsdasdasd952021-08-27 20:43:25
WordPress
dsdasdasd95, 2021-08-27 20:43:25

.webp not working in safari, how to fix it?

Hello, I have all the pictures on the site (except for the logo) in the .webp format (for optimization),
I have an iPhone XR and the pictures are displayed correctly in safari,
pictures are not displayed on a friend's iPhone 5s and in safari.
what is the reason? can it be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artemis1, 2021-08-27
@Artemis1

The webp format is not universally supported by browsers. You can see it here https://caniuse.com/?search=webp
To fix it, also include images in png or jpg format. The browser will think if I support webp, I will download webp, if not, I will download in another format. To do this, use the picture tag in your html.

D
denn, 2021-08-27
@iDx

older iPhones (where the iOS update no longer comes) don't have WEBP display implemented.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question