4 ms·
I've been trying to figure out how they are changing the url without a page refresh. It must be a webkit only thing.
by emehrkay 16y ago
I've been trying to figure out how they are changing the url without a page refresh. It must be a webkit only thing.
- jamesjyu 16y agoYes. They use window.history. It degrades to using the usual hash method for other browsers.
- pornel 16y agopushState() is HTML5 API: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#dom-history-pushstate http://www.whatwg.org/specs/web-apps/current-work/multipage/...