4 comments

[ 5.9 ms ] story [ 18.7 ms ] thread
(comment deleted)
I built a small analytics service and noticed that `page_view` events were missing for users in high-latency regions, while later events like `scroll_depth` were still arriving.

It turned out to be related to how `fetch(..., { keepalive: true })` behaves during page lifecycle events.

Curious if others have seen similar issues or handled this differently.

How reliable is sendBeacon though? Last time I checked, maybe browsers had it disabled by default.
it works, its built for telemetry purpose only