code: function eventHandler(e) {
        if (e.page.path === loader.getPage(pathname).path) {
          emitter.off(`onPostLoadPageResources`, eventHandler)
          clearTimeout(timeoutId)
          window.___history.push(pathname)
        }
      }
docs: Listen to loading events. If page resources load before a second, navigate immediately.