Skip to content

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

Notifications You must be signed in to change notification settings

dkrnl/pwa-connection-type

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.8%
  • HTML 49.2%