Navigator.sendBeacon polyfill

October 3, 2018 ยท View on GitHub

Polyfill for Navigator.sendBeacon()

NPM

Install

Using NPM:

npm install navigator.sendbeacon

Using JavaScript source:

<script src="https://unpkg.com/navigator.sendbeacon"></script>
<!-- OR -->
<script src="https://cdn.jsdelivr.net/npm/navigator.sendbeacon"></script>

Usage

Read the MDN Navigator.sendBeacon() documentation.

License

MIT

Contents

  1. 1Install
  2. 2Usage
  3. 3License