How do I do awesome refreshless page changes like GitHub do?
They have a detailed blog entry up on how it works (HTML5 History API) here: https://github.com/blog/760-the-tree-slider
How does GitHub change the URL but not the reload?
It uses the new push/pop state functions in the history manipulation API.
Change browser URL and page content without reload and without using fragments
I believe this is due to the new History pushState HTML5 feature
how can i improve this code
You should look at new History API additions in HTML5. There's a somewhat long introduction from "Dive into HTML5" book but I like it a bit more than MDN article.
Also there's a great library called History.JS that abstracts away the differences between the new API and old hash-based approach. I also works around many incompatabilities among browsers which is great! It works with jQuery, Prototype, MooTols and Zepto.
Why the new web Dropbox can change the URL without page refresh?
They're using HTML5 Pushstate:
http://badassjs.com/post/840846392/location-hash-is-dead-long-live-html5-pushstate
What is pushState?
The history object gains two new methods, pushState & replaceState, that allow us to change the
current location of the browser without making an HTTP request. These new locations are stored in the
browsers history so that both the back and forward button work as expected.
history.pushState({foo: "bar"}, "foo page", "/foo")
How to change url in address bar?
You can use the history manipulation api:
//Change address to http://www.test.com/page.php:
history.pushState('', '', 'http://www.test.com/page.php');
See
How do I do awesome refreshless page changes like GitHub do? or
https://github.com/blog/760-the-tree-slider
Related Topics
Low Latency (< 2S) Live Video Streaming HTML5 Solutions
Do I Need a "/" at the End of an <Img> or <Br> Tag, etc.
How to Truncate Table Cells, But Fit as Much as Content Possible
Manipulating External Svg File Style Properties with CSS
How to Change the Size of the Radio Button Using CSS
How to Locate the Default Style Sheet for a Browser
How to Determine What Technology a Website Is Built On
How to Export HTML Table Data as .CSV File
Difference Between Overflow-Wrap and Word-Break
How to Upload a File to My Server Using HTML
How to Select a Radio Button by Default
Why Are My Div Margins Overlapping and How to Fix It
How Do Browsers Calculate Width When Child Depends on Parent, and Parent's Depends on Child'S
How to Select an Element That Has a Certain Class
How to Style a File Input Field in Firefox
Google Bot Crawling on Angularjs Site with HTML5 Mode Routes