W
Wes Bos @wesbos
Monday, November 4, 2024 import

Tweet

navigator.sendBeacon is a method for POSTing data (string, blob, formData...) to an endpoint asynchronously The browser guarantees to run these requests to completion, which can be a more stable replacement for onbeforeunload or pagevisibility events with a fetch Have you used this before?