[whatwg] RWD Heaven: if browsers reported device capabilities in a request header (Boris Zbarsky)
irakli at gmail.com
Mon Feb 6 12:00:45 PST 2012
Two use-cases off of my head that do not currently have a non-ugly solution and could if browsers reported device class:
1. Adaptive images:
To optimize user-experience on smart-phones (most of which have relatively small screens, and are on slow connections most of the time) we need to send lower-resolution or resized versions of high-resolution images that would be sent to desktop clients. The best way to do it is if markup referred to an image resource with single URL and server, depending on header information, sent different crop or resolution of the image to different classes of devices.
The two underline assumptions here are: it's much easier to detect device type than quality of network connection. It's also more correct because small-screen devices do not need high-def images even if they can download them fast.
I am sure there are other use-cases that could benefit from improved device type/capability detection. After all, that's exactly why people have put enormous effort in projects like WURFL. Alas, WURFL is not accurate enough or easy enough to use. Hence the motivation for the proposal to ask browsers help with the effort.
More information about the whatwg