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
An excerpt from Registering service workersrel
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.