Clever use of a service worker in combination with navigator.connection.effetiveType
by Michael Scharnagl. The SW watches all requests for image resources, and rewrites them to high resolution versions in case navigator.connection.effetiveType
is fast enough.
Network based image loading using the Network Information API in Service Worker →