navigator.sendBeacon VS fetch + keepalive
When try to send some requests to the backend whenever frontend user ‘leave’ the page, there are two approaches navigator.sendBeacon or fetch with keepalive set to true. So what is the tradeoff? Advantages of navigator.sendBeacon: Specifically desig...
Feb 10, 20252 min read1.1K