Contact emails
pani...@chromium.org, fme...@chromium.org
Spec
Link to explainer: https://github.com/w3c/device-memory
Spec: https://rawgit.com/w3c/device-memory/master/device-memory.html#sec-device-memory-js-api
(bug for setting up spec publishing)
Summary
Add JS API to surface device capability for memory i.e. device RAM. This is to enable web apps to customize content depending on device memory constraints, and report to analytics.
NOTE: This is the API counterpart for the "Device Memory Client Hints Header" that shipped in M61 (link to Intent to Ship)
Motivation
Developers need “device-class” signal for:
1. Serving “light” version of the site or specific components, for low-end devices:
request / serve light version of video player in Facebook
request / serve lightweight tile images in Google Maps
2. Analytics: analytics & Ads need to be able to normalize their metrics against the device-class. For instance, a 100ms long task on a Pixel is a more severe issue vs. on a low-end device; Ad providers need to understand whether an Ad is generally not performant or only on certain low end devices. Also, app developers need to understand their users and their constraints, device class is an important signal for this.
Device memory is an especially useful signal for determining “device-class”. Low memory devices devices (under 512MB, 512MB - 1GB) are widely used in emerging markets.
(For details on why “Device Class” is not directly exposed, see here)
Privacy & Security
The API is only available to secure HTTPS connections, based on feedback in I2S for counterpart header.
Restricting to a ceiling value (rounded to the two most significant bits - details here), as opposed to exact value, significantly mitigates fingerprinting.
Link to “Intent to Implement” blink-dev discussion
Interoperability and Compatibility Risk
Compat risk is low. On browsers that don't support the API, it is not available, and can be feature detected.
Interop risk: medium.
Edge: Public support (link)
Firefox: No signals
Safari: No signals
Web developers: Positive (positive signals from Facebook, Google Search, Google Maps, Youtube, Akamai, Google Docs etc.)
Ongoing technical constraints
None
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Is this feature fully tested by web-platform-tests?
Layout tests not yet upstreamed
Chromium issue to upstream some existing tests
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=710702
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5741299856572416
Requesting approval to ship?
Yes
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7ODi-885YZANPmJwJ%3D3UgS%2BD%2B77qvKTo3vd0%3DuoWX_mZuk6g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7ODi-885YZANPmJwJ%3D3UgS%2BD%2B77qvKTo3vd0%3DuoWX_mZuk6g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEj3J4SggRTAhjxgoR8n%2B%2BAEyMGsC5h-hmzUb_DPQ49%3DJA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-pS2vRX5a-43PWzGZu7tvJG9fGfcJmisgYtBi_S%2BOzrQ%40mail.gmail.com.
LGTM1.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7ODi-885YZANPmJwJ%3D3UgS%2BD%2B77qvKTo3vd0%3DuoWX_mZuk6g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEj3J4SggRTAhjxgoR8n%2B%2BAEyMGsC5h-hmzUb_DPQ49%3DJA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-pS2vRX5a-43PWzGZu7tvJG9fGfcJmisgYtBi_S%2BOzrQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_bbJbD%3D%3D_ParmHRc10Q52de5rOa4tOdc18Ra9ynwjQZA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7ODi9fzHWpbmp1yPqNvd3fnuZcNJZrEuP4bex6%2Be%3De_bm35Q%40mail.gmail.com.