I am using navigator.sendBeacon to send a small payload in the onclick event of an anchor
<a href="https://someurl.com" onclick="navigator.sendBeacon('https://internalurl.com/')">Click Here</a>
But it seems that the user does not navigate away until the server response is received from the sendBeacon call. i.e., if I put a breakpoint in my server-side endpoint, the browser does not navigate to 'https://someurl.com' until I hit continue on my server-side debugger. The docs (https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon) say the call should be async.
Is this the expected behaviour or am I missing something?