     history.pushState state, state.name, state.url
     document.title = state.name
 
+    @trigger 'pjaxbeforeload', [page]
     @requestPage page
 
 

          top: $(document).scrollTop()
          left: $(document).scrollLeft()

    @on 'pjaxload', (e, $page, page) =>
      if page.params and page.params.scrollPosition
        $(document).scrollTop(page.params.scrollPosition.top)
          .scrollLeft(page.params.scrollPosition.left)

        $(document).scrollTop(0)
          .scrollLeft(0)

    @on 'pjaxload', (e, $page, page) =>
      return unless page.url
      url = simple.url page.url
      return unless url.hash
