Use of navigator.sendBeacon instead of synchronous XMLHttpRequest during unload and pagehide improves user experience.
Aseqdec n navigator.sendBeacon deg umḍiq n XMLHttpRequest amtawan deg usersi neɣ acraḍ n usebter ad yesnerni tarmit n useqdac.