     @yTo = window.innerHeight - @$navigation.outerHeight()
 
 
-  onPjaxBeforeReplace: (e, contents, options) =>
+  # only called if actual ajax request is made
+  onPjaxSend: (e, xhr, options) =>
+    @startSpinnerTimer()
+
+
+  onPjaxStart: (e, unused, options) =>
     @calculateY()
 
     # hide hero if we were standing on the home page before navigating



  showSpinner: =>
    @$content.append(@$spinner)


  hideHero: =>

    # prevent transition to same page
    unless @currentPageId is pageId
      # tell pjax to nav to page
      $.pjax({url: url, container: @contentSelector, fragment: @contentSelector})
      # $.pjax({url: "/#{pageId}", container: @contentSelector, fragment: @contentSelector})

