4 ms·
What's the difference between leaving a page and leaving the tab hanging open in the background for a week?
by maccard 5y ago
What's the difference between leaving a page and leaving the tab hanging open in the background for a week?
- xg15 5y agoOne is done more often than the other. Of course there is no way to perfectly, reliably capture 100% of the events. Even if browsers had a dedicated API for that, a user could simply kill the process or pull the plug. However, you can make sure you capture the vast majority of events. Clicking on a link or closing a tab are much more likely events than killing the browser or leaving a tab open for weeks. (On desktop at least, might be different for mobile. But even there, you might want to track how many pages just stay open forever - which would also require you to track close events.)