Registering service workers

In Jeremy’s very good book on Service Workers (it’s actually about going offline, but there’s a main role for service workers as the lead actor) he shows the feature detection way in which you call a service worker. He also covers a future-friendly way, which seems like it might never see the light of day :(

So if you’re reading Going Offline, when you get to the bit about someday using the rel value, you can cast a wistful gaze into the distance, or shed a tiny tear for what might have been …and then put it out of your mind and carry on reading.

An excerpt from Registering service workers

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.