Back to Browse

Using Navigator sendBeacon

7.2K views
Jun 24, 2020
7:16

If you have ever wanted to make a fetch call as your webpage is unloading you will now that this action gets blocked by the browser. Navigator.sendBeacon is the alternate method that addresses this need. Code from video: https://gist.github.com/prof3ssorSt3v3/b690d1cafecd1e6471897327246bfe7e MDN reference: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon Browser support - https://caniuse.com/#feat=mdn-api_navigator_sendbeacon

Download

0 formats

No download links available.

Using Navigator sendBeacon | NatokHD