Skip to content

Commit a2c83f7

Browse files
committed
Edit
1 parent 22f6ad9 commit a2c83f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

content/en/docs/refguide/mobile/introduction-to-mobile-technologies/service-worker.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ To understand how updates to your Mendix PWA are handled, you need to understand
3030

3131
## Waiting for Service Worker Readiness
3232

33-
You may want to wait until the Service Worker is ready before performing operations that rely on it, such as interacting with the app while offline. The browser provides the [ready](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready) property, which returns a Promise that resolves when a service worker is active, to ensure that the service worker is fully initialized and that precaching of assets is complete so the app can work offline.
33+
Mendix recommends waiting until the service worker is ready before performing operations that rely on it, such as interacting with the app while offline.
34+
35+
The browser provides the [ready](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready) property, which returns a **Promise** that resolves when a service worker is active to ensure that the service worker is fully initialized and that precaching of assets is complete so the app can work offline:
3436

3537
```javascript
3638
export async function waitForAppReady() {

0 commit comments

Comments
 (0)