     if opts.norefresh and page
       $page = @el.children().first()
       pageId = $page.attr 'id'
+      $(document).trigger 'pjaxload#' + pageId, [$page, page] if pageId
       @trigger 'pjaxload', [$page, page]
-      $(document).trigger 'pjaxload#' + pageId, [$page, page] if pageId
     else
       @requestPage page
 

      return false

    if page
      state = $.extend {}, page
      @trigger 'replacestate', [state]
      title = @pageTitle state.name
      history.replaceState state, title, state.url

    @el.height ''

    pageId = $page.attr 'id'
    $(document).trigger 'pjaxload#' + pageId, [$page, page] if pageId
    @trigger 'pjaxload', [$page, page]

  unload: ->
    page = @setCache() if @url
