What self.skipWaiting() does to the service worker lifecycle

added by JavaScript Kicks
1/29/2019 8:20:24 AM

421 Views

The ServiceWorker.skipWaiting() method is a life saver. It ensures that any new versions of a service worker will take over the page and become activated immediately. To understand why this is so important and useful, we need to revisit the service worker lifecycle. I have a more detailed article


0 comments