fetch()
's keepalive is a new option parameter in Web API spec to replace the Navigator.sendBeacon()
API for usecases where requests should outlive the current page, like tracking clicks.
This new fetch option is supported in all modern browsers except Firefox (at time of writing, Firefox 110):