How Facebook Chat Stays Open and in the Same Place When You Navigate Pages
Please, before answering:
1-I know Ajax well, and the current implementation on Facebook is not normal Ajax , as it was in the past.
2 - the page URL does not completely change part of the hash, and the whole page reloads, but not the chat window or panel.
I found that the URL changes through this part of JS:
history.pushState({},"New Title Goes Here","http://facebook.com/Something");
But what about the data itself, how does it fail? Network-> XHR in Firebug or Chrome doesn't display anything in XHR. so I think this is not Ajax.
Shehabix
source share