5 ms·
Well, you could use Javascript: try to load a 1x1 WebP file using Image() and then choose the right URL for the images on the page depending on the result. Add
by icebraining 15y ago
Well, you could use Javascript: try to load a 1x1 WebP file using Image() and then choose the right URL for the images on the page depending on the result. Add normal <img> tags inside <noscript> with the PNG/JPG versions for graceful degradation.
http://stackoverflow.com/questions/5573096/detecting-webp-support http://stackoverflow.com/questions/5573096/detecting-webp-su...