How to load previous content like GitHub?

ajax, jquery, load, user-experience

Solution

Check out the jquery-address plugin.

https://github.com/asual/jquery-address

Problem

When I'm on GitHub and I browse some folder, the content loads dynamically : - address bar is updated - main content is updated When I click on previous of my web browser to roll back : - address bar recovered his previous url - main content recovered his previous content. For my own site, I can load content dynamically (in jQuery). But when I roll back, only my address bar is updated. The content doesn't change. :( How can I get my previous content when I click on previous ? Thanks

Original source