title: Rails TurboLinks Page Loading
body: <p>I'm using the following code to show some loading content:</p>
  
  <pre><code>$(document)
      .on 'page:fetch', -&gt;
          $('#page-loading').show()
      .on 'page:load', -&gt;
          $('#page-loading').hide()
  </code></pre>
  
  <p>The problem I am having is the browser back button.  If I click on the browser back button the loading bar is displayed on the previous page. </p>
  
  <p>Is there a way to hide the div#page-loading when a user clicks the back button in the browser?</p>
  
  <p>Thanks</p>