mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

`unload` event not reliable for batch flushing according to MDN

Open albertstill opened this issue 3 years ago • 1 comments

Hi, with batching enabled you flush the data on page unload which is awesome, but according to MDN unload should be avoided and instead the visibilitychange event with a pagehide fallback should be used. Do you think it would be a good idea to change? Cheers

albertstill avatar Apr 19 '21 07:04 albertstill

Any update on this?

albertstill avatar May 23 '21 08:05 albertstill