The navigator.sendBeacon() method asynchronously sends an HTTP POST request containing a small amount of data to a web server.| MDN Web Docs