- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 04 Jul 2018 06:11:57 +0000
- To: public-css-archive@w3.org
The Working Group just discussed `prefers-reducued-data MQ`. <details><summary>The full IRC log of that discussion</summary> <heycam> Topic: prefers-reducued-data MQ<br> <heycam> github: https://github.com/w3c/csswg-drafts/issues/2370<br> <heycam> florian: I don't know for sure in which browser but I suspect in chrome, which has a new HTTP header which they can send if the user requested so<br> <heycam> ... which informs the web server that you would prefer lightweight content<br> <heycam> ... there has been a suggestion to have a MQ to match that<br> <heycam> ... in the same circumstances, the page author would also know that the user may be directly / through some heuristic, prefers some lightweight content<br> <heycam> ... images as a bg instead of a video, e.g.<br> <heycam> ... seems reasonable to me<br> <heycam> myles: how does chrome know when to send the header?<br> <heycam> philipwalton: I think it's from the OS on Android<br> <heycam> iank_: there's a setting Chrome, prefer lightweight data, then we send everything through potentially an HTTP proxy<br> <heycam> ... few other things as well<br> <heycam> florian: is it user triggered<br> <heycam> iank_: yes<br> <heycam> ... but I'm not sure, might be varied on country basis<br> <heycam> ... we run HTTP proxies where we'll send traffic through that, then do a bunch of compression for the user<br> <heycam> myles: so the proxy might turn on the header?<br> <heycam> iank_: no<br> <heycam> ... the proxy is one of the side effects from turning on this option<br> <heycam> ... and I think the bit of information that we give devs is on navigator.connection.saveData<br> <heycam> philipwalton: it's a client hints header, in the clients hint spec<br> <heycam> florian: somebody proposed to detect this via MQ<br> <heycam> fantasai: seems reasonable to me<br> <heycam> astearns: is that header, are there plans for other browsers to implement this?<br> <heycam> fantasai: wht values does the header have?<br> <heycam> philipwalton: I think it's just a boolean at this point<br> <heycam> ... but the spec is written in a way that it could apply additional values<br> <heycam> fantasai: I can imagine wanting three levels, i don't care, I would prefer if you didn't give me heavy things, I'm on a metered / dialup connection<br> <astearns> http://httpwg.org/http-extensions/client-hints.html#save-data<br> <heycam> iank_: quickly looking through the additional things we expose, we also give as headers (what we think is the effective) roundtrip time<br> <heycam> ... an estimate of the downlink speed<br> <heycam> philipwalton: and effective connection type<br> <heycam> heycam: mobile vs fixed?<br> <heycam> iank_: 3g, 4g, slow 2g, ....<br> <heycam> florian: don't think we'd expose all that<br> <heycam> ... via the MQ<br> <heycam> ... having something that can be used in a boolean context, where one case is no preference, and may have other "yes please" levels<br> <heycam> iank_: one thing I'd like to see here is use cases for where it's used in CSS<br> <heycam> florian: use image bg instead of video bg<br> <heycam> iank_: do that with script<br> <heycam> philipwalton: 1x vs 2x?<br> <heycam> florian: browser should do that already<br> <heycam> [side discussion about font-display:optional]<br> <heycam> philipwalton: with save data, 1x vs 2x, could be your device supports 2x but you only want a smaller version of the image<br> <heycam> florian: mostly you should not be using resolution MQ feature, but instead srcset<br> <heycam> ... then the load data preference could influence that<br> <heycam> s/srcset/image-set/<br> <heycam> myles: maybe terribly idea, can we extend that mechanism to allow switching between videos and images as backgrounds, instead of a MQ?<br> <heycam> fantasai: MQs are not only used in CSS<br> <heycam> emilio: responsive images<br> <heycam> iank_: I'm not saying no, but I want to see web developer demand for this<br> <heycam> astearns: that's the general tone I'm hearing<br> <heycam> ... sounds like it could be useful, but we'd need to have it motivated by use cases and I'd prefer to see this client hint get a bit farther on the track<br> <heycam> florian: sounds ok<br> <heycam> koji: this is an Android OS setting<br> <heycam> ericwilligers: it's both Android and a Chrome setting<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2370#issuecomment-402373927 using your GitHub account
Received on Wednesday, 4 July 2018 06:12:02 UTC