       reflectNewUrl url unless options.change? || options.keep? || options.flush?
       reflectRedirectedUrl()
       changePage doc, options
-      if showProgressBar
+      if options.showProgressBar
         progressBar?.done()
       manuallyTriggerHashChangeForFirefox()
-      onLoadFunction?()
+      options.onLoadFunction?()
       triggerEvent EVENTS.LOAD
     else
       progressBar?.done()
       document.location.href = crossOriginRedirect() or url.absolute
 
-  if progressBar and showProgressBar
+  if progressBar and options.showProgressBar
     xhr.onprogress = (event) =>
       percent = if event.lengthComputable
         event.loaded / event.total * 100

    progressBar?.uninstall()
    progressBar = null

fetchReplacement = (url, options = {}) ->
  onLoadFunction = options.onLoadFunction
  showProgressBar = options.showProgressBar ? true

  triggerEvent EVENTS.FETCH, url: url.absolute


        existingNode.parentNode.replaceChild(targetNode, existingNode)
        if targetNode.nodeName == 'SCRIPT' && targetNode.getAttribute("data-turbolinks-eval") != "false"
          executeScriptTag(targetNode)
  return

executeScriptTags = ->
  scripts = Array::slice.call document.body.querySelectorAll 'script:not([data-turbolinks-eval="false"])'
