top | item 47070435

Show HN: How fetch(keepalive) Broke in High-Latency Regions

1 points| adwait12345 | 11 days ago |adwait.me

2 comments

order

adwait12345|11 days ago

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.

XCSme|7 days ago

How reliable is sendBeacon though? Last time I checked, maybe browsers had it disabled by default.