2

There's a new feature on vkontakte.ru (I bet facebook has the same, not sure though). You browse pages while player keeps playing music at the background without interruption. How is this possible?

Dziamid
  • 11,225
  • 12
  • 69
  • 104

2 Answers2

0

The use Ajax (so they just load something else in the page but they don't reload it completely). Until not long ago, you could only change the hash (after the #) in the url but now, with the new history API, it is possible to change the whole url (with pushStates basically) : https://developer.mozilla.org/en/DOM/window.history

xavierm02
  • 8,457
  • 1
  • 20
  • 24
0

Check pjax , it's easy to use. May be that is exactly what you need.

Bart
  • 495
  • 1
  • 5
  • 16