79116161

Date: 2024-10-23 01:23:35
Score: 1.5
Natty:
Report link

I would recommend trying the visibilitychange event instead of 'pagehide' and designing your stats update to handle that it may not be the final thing and may have a subsequent call where you would update the stats again (for example, a user may have just minimized the window, then raised it again, then closed it - that would generate 3 visibilitychange events: hidden, shown, then hidden again).

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hans