Rely on "pagehide" first if it's available.
This is because "pagehide" is fired in more situations and because unload is not supported on mobile Safari.
Showing
Please register or sign in to comment
This is because "pagehide" is fired in more situations and because unload is not supported on mobile Safari.