Use of navigator.sendBeacon instead of synchronous XMLHttpRequest during unload and pagehide improves user experience.
Use of navigator.sendBeacon instead of synchronous XMLHttpRequest during unload and pagehide improves user experience.