Skip to content

prefer sendBeacon to XMLHttpRequest#1

Open
carlisliu wants to merge 2 commits intocatalsdevelop:masterfrom
carlisliu:master
Open

prefer sendBeacon to XMLHttpRequest#1
carlisliu wants to merge 2 commits intocatalsdevelop:masterfrom
carlisliu:master

Conversation

@carlisliu
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant