Might want to watch for changes to page visibility and abort if it becomes non-visible. Easy to skew results by putting the page into the background for a moment.