DEV Community

loading...

Discussion on: Sure you want to leave?—browser beforeunload event

Collapse
samthor profile image
Sam Thorogood Author

Don't send an XMLHttpRequest—use sendBeacon, like I mentioned in the article.