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

Rate this post

QUESTION

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

Idle

Canceled

Stop

Install

The correct answer is:

Install

What is a valid event for a Service Worker to emit when it’s registered?
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

(Visited 1 times, 1 visits today)