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.
Re:Show HN: How fetch(keepalive) Broke in High-Latency Regions
by adwait12345 on Wednesday March 04, 2026 @04:14AM
(#47244979)
Yep it can be blocked by third party extensions/ad blocker, so analytics services use both, One as fallback for other. If you try to open tracking script from GA you will find both fetch & beacon.
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.