Actually, I've discovered this issue has nothing to do with intranet sites.
It happens when the site loads in the background (tab is not active). Has been happening with all websites. If I refresh the page, it works first time. If the page loads in the background, this happens.