I recently learned about navigator.sendBeacon, a Web API method that lets you send data to a server when the user navigates away from your page, reloads, or closes their browser tab.
Share this post
Using navigator.sendBeacon
Share this post
I recently learned about navigator.sendBeacon, a Web API method that lets you send data to a server when the user navigates away from your page, reloads, or closes their browser tab.