Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
cloudinary-logo.png
dog-low-quality.jpg
dog.jpg
image-comparison.jpg
index.html
mobile-screenshot.png
service-worker.js

README.md

Dynamically adjusting resources based on browser, network connection and device memory

A basic example that guides you through the service worker code to dynamically adjusting resources based on browser, network connection and device memory.

Service Worker - navigator.connection - save data - navigator.deviceMemory

If you'd like to learn more about this code, I've written up a full blog post 2018 Performance Calendar.

For a live demo, please visit deanhume.github.io/pwa-cloudinary/.