     $(document).on 'turbolinks:before-cache', @onBeforeCache
     $(document).on 'turbolinks:before-visit', @onBeforeVisit
     $(document).on 'turbolinks:load', @onLoad
-    $(window).on 'scroll', @onWindowScroll
 
 
   allTargets: (callback) =>


  onLoad: =>
    @scrolled = false
    # Delayed to wait until cacheSnapshot finishes. The delay matches Turbolinks' defer.
    Timeout.set 1, =>
      @deleteLoadedMarker()



  scrollOnNewVisit: =>
    $(window).off 'scroll', @onWindowScroll
    newVisit = @newVisit
    @newVisit = false

    return if !newVisit || @scrolled

    targetId = document.location.hash.substr(1)

