What is a valid event for a Service Worker to emit when it’s registered?

What is a valid event for a Service Worker to emit when it’s registered?

What is a valid event for a Service Worker to emit when it’s registered?

  • Canceled
  • Install
  • Idle
  • Stop
What is a valid event for a Service Worker to emit when it’s registered?

What is a valid event for a Service Worker to emit when it’s registered?

Correct answer is:

  • Install

Explanation: To install a service worker for your site, you need to register it, which you do in your page’s JavaScript. Registering a service worker will cause the browser to start the service worker install step in the background.
Read more here: https://support.google.com/partners/answer/7336697

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.