4 ms·
Most probably they're using the sendBeacon method triggered by the visibilitychange event. sendBeacon doesn't delay the unload and asynchronously makes the netw
by closewith 2y ago
Most probably they're using the sendBeacon method triggered by the visibilitychange event. sendBeacon doesn't delay the unload and asynchronously makes the network request simultaneously.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...
- frereubu 2y agoThanks, that's really useful to know - I might try and implement something like that on the sites that we run.