title: Loading History.js state after back button from other page
body: <p>I'm trying to use <a href="https://github.com/balupton/History.js" rel="nofollow noreferrer">History.js</a> to track the state of ui that has been manipulated with Javascript. The purpose is that users want to come back to the page (after visiting other pages in the system via links) in the state they left it in.</p>
  
  <p>For this I bind the event for <code>popstate</code> like such:</p>
  
  <pre><code>History.Adapter.bind(window, 'popstate', function () {
      var History = window.History;
      var State = History.getState();
      LoadState(State, true);
  });
  </code></pre>
  
  <p>Which works fine in most browsers while still navigating in the page, but only Chrome seems to trigger the event when going back to the page from another page. I've tried binding <code>statechange</code> as well, but it seems to trigger only on in-page navigation and not on "back-loading" a page.</p>
  
  <p>Am I even correct in assuming there is a way to trigger an event when going back to a page? If so, how?</p>