ready

The ready read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.

MDN Reference