3 ms·
Why isn't there a way for devices to indicate to a server if they are on a slow or data-capped connection? There is. I'll update this post if I remember what i
by petercooper 10y ago
Why isn't there a way for devices to indicate to a server if they are on a slow or data-capped connection?
There is. I'll update this post if I remember what it is, but I believe there's a spec and Chrome Canary is supporting it. It uses an HTTP header.
- sillysaurus3 10y agoRather than rely on specs or browser support, why not simply measure how quickly data is being downloaded? That wouldn't help on the first page load, but it would make the information available on subsequent loads.
- toomanythings2 10y agoNavigation Timing API https://developer.mozilla.org/en-US/docs/Web/API/Navigation_timing_API https://developer.mozilla.org/en-US/docs/Web/API/Navigation_... I have a feeling there is something else but I have trouble remembering it, too, and I bet I have it bookmarked to study when I have the need to use it.
- petercooper 10y agoThat's a good one, but it wasn't that. It's something that literally gets clients to add an HTTP header to specify that bandwidth should be "saved". Actually, that reminded me of what it was called.. haha, it's https://developers.google.com/web/updates/2016/02/save-data?hl=en https://developers.google.com/web/updates/2016/02/save-data?... .. The header is: Save-Data: on.
- petercooper 10y agoIt's this: https://developers.google.com/web/updates/2016/02/save-data?hl=en https://developers.google.com/web/updates/2016/02/save-data?... .. the header is: Save-Data: on.