     if doc = processResponse()
       changePage extractTitleAndBody(doc)...
       reflectRedirectedUrl()
-      resetScrollPosition()
+      onLoadFunction()
       triggerEvent 'page:load'
     else
       document.location.href = url

xhr            = null


fetchReplacement = (url) ->
  rememberReferer()
  cacheCurrentPage()
  reflectNewUrl url

  triggerEvent 'page:fetch', url: url

  xhr?.abort()

  installJqueryAjaxSuccessPageUpdateTrigger()

if browserSupportsTurbolinks
  visit = fetch
  initializeTurbolinks()
else
  visit = (url) -> document.location.href = url
