You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NOTE: Safari does not reliably fire the `visibilitychange` event when the
410
-
// page is being unloaded. If Safari support is needed, you should also flush
411
-
// the queue in the `pagehide` event.
412
-
addEventListener('pagehide', flushQueue);
413
408
```
414
409
415
-
_**Note:** see [the Page Lifecycle guide](https://developers.google.com/web/updates/2018/07/page-lifecycle-api#legacy-lifecycle-apis-to-avoid) for an explanation of why `visibilitychange`and `pagehide` are recommended over events like `beforeunload` and `unload`._
410
+
_**Note:** see [the Page Lifecycle guide](https://developers.google.com/web/updates/2018/07/page-lifecycle-api#legacy-lifecycle-apis-to-avoid) for an explanation of why `visibilitychange`is recommended over events like `beforeunload` and `unload`._
0 commit comments