Re:Show HN: How fetch(keepalive) Broke in High-Latency Regions
by adwait12345 on Thursday February 19, 2026 @01:08AM
(#47070440)
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.
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.