All Projects → deanhume → pwa-connection-type

deanhume / pwa-connection-type

Licence: other
A tiny service worker script to change image quality dependant on connection type (2G, 3G, etc)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

The Network Information API allows developers to determine the connection types and the underlying connection technology that the user agent is using. In terms of web performance, this brings a whole new level to the way that we build web pages. Being able to reliably determine whether or not a user has a slow 2G connection or a speedy Wifi connection allows developers to serve content accordingly.

If you'd like to learn more about using the Network Information API together with service workers, I have written an article on my blog at deanhume.com

Network Information API

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].