3 ms·
WebP only works on ~73% of browsers (https://caniuse.com/#feat=webp https://caniuse.com/#feat=webp, no Firefox/Safari/Edge support), so it's a little early to s
by Scaevolus 8y ago
WebP only works on ~73% of browsers (https://caniuse.com/#feat=webp https://caniuse.com/#feat=webp, no Firefox/Safari/Edge support), so it's a little early to switch all your images to it. MozJPEG is a good JPEG compressor.
- oliv__ 8y agoYou can use the HTML5 <picture> element to add a fallback jpeg for all browsers that don't currently support Webp
- mh-cx 8y agoEven better: you can let your image server check the accepted formats in the request header and send webp content transparently instead of jpg. Then you don't have to change your markup at all. Browser's don't really care about file extensions. https://github.com/uhop/grunt-tight-sprite/wiki/Recipe:-serve-WebP-with-nginx-conditionally https://github.com/uhop/grunt-tight-sprite/wiki/Recipe:-serv...
- oliv__ 8y agoOh. Thanks! I didn't know that was possible