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?

Source: x.com/wesbos/status/1853518922181382631

Reply to this note

Please Login to reply.

Discussion

No replies yet.