We are having little luck getting webp images to serve from our server Microsoft-IIS/7.5 across all browsers
We are trying both the fallback to jpeg method and the decompress via javascript method for non supported browsers but currently haven't managed to get either solution to work.
This site details how to load them using javascript in Firefox etc. and seems to work
http://webpjs.appspot.com/But when we try to use it, it just generates an "undefined" object and throws a 404 error.
Test example showing this error:
Javascript exampleThen we have tried using a server side fallback method as outlined here:
http://www.stucox.com/blog/client-side-vs-server-side-detection-for-webp/Also with no effect, although there are no clear details on exactly how to set it up, it seems to say you just need 2 versions of the file one jpg and one webp and then the server will chose which one to send.
There are no examples I've found so far that explain exactly how the html should be written to enable it so maybe I'm missing something?
It seems to be saying just request a webp image and if the browser can handle it the server will return it otherwise it will return the jpg of the same thing.
This test uses no javascript and both a webp and jpg version of the image is available to serve from the same place but it always serves the webp image regardless of the browser
Fallback exampleAt which point I'm a bit stuck.
We can use client side fallback, that is an option but I'd like to get these other options working to compare the pros and cons.
Is there any reason why both these other methods fail?