title: How do I achieve the "GitHub browse repo effect" (update URL without refreshing the page)
body: <p>When I browse a repo in GitHub (example: <a href="https://github.com/sizzlelab/kassi" rel="noreferrer">https://github.com/sizzlelab/kassi</a>) and click a folder, it loads the folder with a cool javascript animation, moving stuff to the left, instead of reloading the whole page. However, the URL of the page is still updated on every click.</p>
  
  <p>How do I achieve this? To my knowledge, you cannot update the page URL from javascript, so you need to refresh the page. My guess is that they do a partial caching of the page so that it does not seem to reload and then run the javascript animation after reload. Am I on the right track? Any pointers on how this can be achieved? My environment is jQuery and rails, but a general advice will help also.</p>