       else
         @_loading()
 
+        @requestAts.push +new Date # note when this request started
         $.getScript(@$container.find(@options.navSelector).attr('href'))
           .done(=> @_success())
           .fail(=> @_error())

(($, window) ->
  # Define the plugin class
  class InfinitePages

    # Default settings
    defaults:

      @_log "Scroll checks resumed"
      @check()

    _recache: ->
      # Recache the element references we use (needed when using turbolinks)
      @$container = $("[data-jquery-infinite-pages-container=#{@instanceId}]")
      @$table = @$container.find('table')
      @$context = $(@options.context)

    _invalidateActiveRequests: ->
      # Invalidate any active requests (needed when using turbolinks)
      @invalidateAt = +new Date

    _isInvalidatedRequest: (requestAt) ->
      # Check to see if a request was invalidated
      requestAt < @invalidateAt

  # Define the plugin
  $.fn.extend infinitePages: (option, args...) ->
    @each ->
