Exploring Webpack with Workbox service workers to cache .js bundles + CDN links.
- Clone this repo
- Install
serve
globally:npm install -g serve
- Run
yarn install
- Run
yarn build
- Run
serve ./dist
- Tiny core app bundle because no React (2KB).
- React loads in 22ms, from the service worker cache, rather than the horrendously slow 175ms from unpkg.
- 💯 perf score.
- Cached app shell
- Asset handling