Going offline | Responsive Web Design

Going offline

Ethan talks about the approach of going offline with his own site. He does some really clever stuff like updating the offline page to display any of the articles that you’ve already viewed and added to your cache

Ethan Marcotte Responsive Web Design

That’s where that extra little pinch of JavaScript comes in: it searches for blog entry URLs in the service worker cache, then looks up the metadata for those URLs in a JSON file, and then prints out a nice-looking link on the offline page. So as you browse through my archives, you’ll save new entries for offline access—which then get shown on the offline page itself.

An excerpt from Going offline

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.