2 ms·
Previous discussions: http://news.ycombinator.com/item?id=1744237 http://news.ycombinator.com/item?id=1744237 http://news.ycombinator.com/item?id=1746621 http:/
by wmf 16y ago
Previous discussions: http://news.ycombinator.com/item?id=1744237 http://news.ycombinator.com/item?id=1744237 http://news.ycombinator.com/item?id=1746621 http://news.ycombinator.com/item?id=1746621 http://news.ycombinator.com/item?id=1745801 http://news.ycombinator.com/item?id=1745801 http://news.ycombinator.com/item?id=2507700 http://news.ycombinator.com/item?id=2507700
It may be X% smaller than JPEG for the same image quality, but does that really matter?
If the bandwidth cost saved is greater than the cost of adding WebP to Chrome, then it's a net win. Or if it makes some Google page load 10 ms faster, that would also pay for it.
years before you can rely on all your clients having WebP support.
That's what content negotiation is for.
- richbradshaw 16y agoThe problem is that Chrome sends an accept header of / for images, meaning that mod_negotiation for instance can't determine what to send. The only real way is either by hard coded UA sniffing on the server (uggh!) or by detecting webp in JS (ugggh!) as far as I can tell.