Hey all! Want to highlight two proposals we’re incubating on the NetInfo repo…
Providing (effective) network speed to web servers
This is a proposal for a new HTTP request header and an extension to the Network Information API to convey the HTTP client’s network connection speed.
The goal of the header and API is to provide network performance information, as perceived by the client, in a format that’s easy to consume and act upon. The header’s aim is to convey a level of performance in an intuitive format at a granularity that is coarse enough to key cache entries based on its value. The header aims to allow proxies and web servers to make performance-based decisions, even on the first request. The API extension aims to make it easy to make such decisions from within JavaScript.
Expose “Save-Data” client hint in navigator.connection
Service worker might use the client hint to determine, as part of its install handler, whether to precache a heavy- or lightweight bundle of resources. Exposing this information from within the NetworkInformation interface means that a service worker and other scripts could access it via navigator.connection.
Would love to hear any thoughts and feedback.