         $(document).scrollTop(0)
           .scrollLeft(0)
 
+    @on 'pjaxload', (e, $page, page) =>
       return unless page.url
       url = simple.url page.url
       return unless url.hash

    history.pushState state, state.name, state.url
    document.title = state.name

    @requestPage page



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

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