Back navigation with pushstate and load in jQuery
<p>I'm currently using jQuery to dynamically load content into a holder div and then updating the url with pushstate.</p>

<p>I have the following code so far (some excluded for example simplicity):</p>

<pre><code>$("body").on("click", "a:not(.noclick)", function(){

    history.pushState({path: $(this).attr("href")}, "", $(this).attr("href"));

    $("#main").load($(this).attr("href"));

    return false
});
</code></pre>

<p>It works as expected and the url changes to what it should be on new content load but the back button is currently unfunctional, when back is pressed the url changes to the previous but nothing else happens.</p>

<p>I have pages built in a way that you can either use the site with jQuery to load content without headers or without any javascript and pages display from their urls so there's no issue in that part.</p>

<p>Is there a way I could use load on back navigation to load the last pushstate history? I'd prefer to not use hashing but not sure if it's possible without?</p>

<p>Facebook seems to do this with their navigation if that helps?</p>
