-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review request for Device Memory API #190
Comments
Thanks for this! We've just had a quick preliminary look at it, and will address it more thoroughly soon. Quick question though: If your primary use case is for improving the user experience in developing countries, what evidence do we have that the problem is indeed memory and not just bandwidth? Are you considering bandwidth in a separate vein? It was great to see your comment in the explainer about Chrome telemetry showing OOM crashes... anything from other UAs? Or other causes of bad UX? |
The primary usecase is addressing the wide range of devices, which continues to grow due to competing on price. Bandwidth / connection quality is a big problem as well, it is addressed with recent extensions to NetInfo for "effective connection type", rtt and downlink: |
Updated spec url: https://w3c.github.io/device-memory/ |
[With my Microsoft hat on.] We (at Microsoft) see very similar patterns in our telemetry streams. Websites are often just too-big/complicated to function well with less-memory. Of course, we are continuously working to make our browser more efficient and use less-memory, but it's really easy for a web-site to consume lots of memory and then reach a threshold that the device force-terminates the browser due to high-memory usage. |
Links above should probably be updated to https://github.com/w3c/device-memory/blob/master/index.bs and https://w3c.github.io/device-memory/. |
Hey @spanicker; thanks for filing the review request! We discussed the explainer at today's F2F meeting in Nice and had some thoughts:
Thanks again; looking forward to discussing this more. Also, cc: @mnot for discussion of HTTP aspects. |
Thanks for the feedback!
Yes - all requests. This is the same as what applies to Client Hints in general, we are not restricting request type for Device Memory.
navigator.deviceMemory API will work even without Accept-CH header (for HTTPS secure contexts only). The usecase for navigator.deviceMemory API is bit different from the header - the API will be used by analytics for device class and for normalizing metrics against etc.
Yes. @n8schloss is planning to drive this work.
The opt-in with Accept-CH is needed to avoid request overhead / bloat from sending lots of uninteresting headers that are not useful or needed.
Not yet. Developers have not yet requested this AFAIK. \cc @fmeawad |
LGTM. Thank you for the thorough response! |
Hello TAG!
I'm requesting a TAG review of:
Name: Device Memory API
Specification URL
https://rawgit.com/w3c/device-memory/master/device-memory.html
https://github.com/w3c/device-memory/blob/master/device-memory.bs
Explainer:
https://github.com/w3c/device-memory
Primary contacts: @spanicker
You should also know that...
The header and API will only be available to HTTPS secure contexts.
We'd prefer the TAG provide feedback as (please select one):
The text was updated successfully, but these errors were encountered: