Skip to content

Commit df4ac26

Browse files
committed
Remove obsolete pagehide fallback advice
1 parent 27ce46c commit df4ac26

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • files/en-us/web/api/navigator/sendbeacon

files/en-us/web/api/navigator/sendbeacon/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ thus hurting performance. Others, such as Safari and Chrome on Android, handle i
100100

101101
Firefox will also exclude pages from the bfcache if they contain `beforeunload` handlers.
102102

103-
#### Use pagehide as a fallback
104-
105-
To support browsers which don't implement `visibilitychange`, use the [`pagehide`](/en-US/docs/Web/API/Window/pagehide_event) event.
106-
Like `beforeunload` and `unload`, this event is not reliably fired, especially on mobile. However, it is compatible with the bfcache.
107-
108103
## Examples
109104

110105
The following example specifies a handler for the {{domxref("document.visibilitychange_event", "visibilitychange")}} event. The handler calls `sendBeacon()` to send analytics.

0 commit comments

Comments
 (0)