hettlage (91) [Avatar] Offline
There are few minor changes which might make it easier to get started with service workers.

  • You could point out which browsers support (or don't support) service workers. There are readers who are using Safari, after all... smilie

  • You mention that you can use localhost for testing, but you might state (more) explicitly that http can be used in this case. (You might also mention that even for localhost the files must be served via http - file:// doesn't seem to work.)

  • It would be helpful if you stated clearly that listing 1.2 is a complete service worker file. You call it a "snippet of code inside the service worker file", and together with the fact that the variable self isn't declared this (erroneously) might suggest to the reader that they cannot use that code for getting their feet wet with service workers.