Re: [csswg-drafts] [css-mediaqueries] Proposal: "prefers-reduced-data" (#2370)

@frivoal I was chatting about this with @yoavweiss at performance.now() conf and he sent me just this thread.

I have a use-case for `prefers-reduced-data` in that I’m avoiding loading webfonts and some iconography (instead leaving textual labels) based on this flag.

Currently, I have an inline JS script in my `<head>` tag which adds a CSS class to the document – it’s only a small script so it’s pretty performant but it would be far cleaner if I didn’t have to rely on that. My workaround also breaks in cases where someone is blocking JS to also double-down on data savings (given the minimal adoption of `Save-Data`).

I feel like this would be useful for websites without real-time image transformation CDNs or ones which do not respond to Client Hint headers – so it would be potentially useful if this media query was available to `<source>`.

Hope this is helpful, please do reach out if I can provide any further context.

-- 
GitHub Notification of comment by ryantownsend
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2370#issuecomment-557778350 using your GitHub account

Received on Saturday, 23 November 2019 08:27:05 UTC