Prerequisites for service workers

Prerequisites for service workers are:

  • Because service workers are so powerful (almost like a network proxy) to avoid certain attacks, they're only available for domains running on HTTPS. However, they run fine on localhost, as well.
  • They heavily depend on promises, which we've already covered in depth in Chapter 4, Asynchronous Programming.

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.