I have uploaded images on to my home page as webp images as I saw that google favours this for SEO. However, Safari does not read them on older versions.
Is there code that I can use to have Safari revert all webp images to jpg? Without having to readd the code for every single div/image url on the website?
Step 2: Add this code to every page on your site. The easiest way I found was to just drop it in a hidden embed in my global nav component
<script>
var webpMachine = new webpHero.WebpMachine()
webpMachine.polyfillDocument()
</script>
I don’t have an older mac to be able to test this. But I have spoofed my user agent to an old MacOS/Safari version and it seems to be loading properly.