flextracker icon indicating copy to clipboard operation
flextracker copied to clipboard

prefer sendBeacon to XMLHttpRequest

Open carlisliu opened this issue 8 years ago • 0 comments

when using sendBeacon, the data is transmitted asynchronously to the web server when the User Agent has an opportunity to do so, without delaying the unload or affecting the performance of the next navigation. and it has no issue with cross domain requests.

carlisliu avatar Oct 10 '16 06:10 carlisliu