Do not pushState if page fails to load