1

How can I achieve a similar effect to the browser back-button/forward button in github while browsing a repository?

To experience it try this: https://github.com/rogerdudler/git-guide

and click on any of the html pages below: it will load smoothly (I don't know how to achieve this either) and you will be able to slide back and forth with your browser's arrows like if you were browsing in a flash applet

Johnny Pauling
  • 12,701
  • 18
  • 65
  • 108

1 Answers1

3

I believe they are doing this using the History API

Other related answers:

Community
  • 1
  • 1
kanaka
  • 70,845
  • 23
  • 144
  • 140
  • @JohnPell, yes, it appears so. When I use the network tab in Chrome's dev tools, it does appear that AJAX requests are being used to load the resources when new locations in the tree are navigated to. – kanaka Jul 10 '12 at 14:21