A few months ago I saw a new function deployed to vkontakte.ru (Russian FB): when switching between user pages, the browser does not restart. Instead, the new page gets preloaded and then displayed. The music player that is on the page (tied to the top of the footer) continues to play without interruption.
However, the URL in the address bar of the browser is changed, not with a hash tag or query string.
So, my page is vk.com/myPage ... I click a friend, his page preloads, then displays when the URL in the address bar of the browser changes to vk.com/myfriendJoe and the browser does not restart.
Please note that it only works with the latest browsers, such as later versions of Safari and Chrome; for others, such as Firefox 3.6, it implements a reserve that uses hashtags and query strings.
I did some research and found window.history.pushState , but it only works with query strings.
Any ideas would be highly appreciated. Thanks.
source share