Using Navigator sendBeacon

Published: 24 June 2020
on channel: Steve Griffith - Prof3ssorSt3v3
6,066
199

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/prof3ssorSt3v...

MDN reference: https://developer.mozilla.org/en-US/d...

Browser support - https://caniuse.com/#feat=mdn-api_nav...


On this page of the site you can watch the video online Using Navigator sendBeacon with a duration of hours minute second in good quality, which was uploaded by the user Steve Griffith - Prof3ssorSt3v3 24 June 2020, share the link with friends and acquaintances, this video has already been watched 6,066 times on youtube and it was liked by 199 viewers. Enjoy your viewing!