finds.dev← search

// the find

chriscoyier/Simple-Offline-Site

★ 292 · JavaScript · MIT · updated May 2017

A companion demo repo for a 2015 CSS-Tricks article on using Service Workers to make a site work offline. It's a minimal static site with a hand-rolled service worker showing the basic cache-on-install pattern. Useful only as a read-along artifact for that specific article.

- The service worker implementation is simple enough to read in one sitting — no framework abstraction hiding what's actually happening

- Shows the full build pipeline (Gulp + SCSS + SVG sprite) as it was actually done in 2015, which has historical value for understanding how the ecosystem evolved

- Commit history is clean and matches the article's progression, making it easy to follow along step by step

- Nine years out of date — the Service Worker API has changed significantly, Workbox now exists, and this code reflects patterns that were experimental at the time

- No value as a starting point for a real project: Gulp 3, jQuery, no module bundler, no tests

- The entire repo's purpose is to be read alongside one article — without that article it's a mostly blank page with a cache strategy

- 292 stars is purely residual CSS-Tricks traffic; the repo itself has had zero maintenance since 2017

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →