I’m just testing out Google Play Music, and noticed that with so much going on on a single page, how come there aren’t many XHR requests showing up in the console?
When I create an AJAX site, every single XHR request I perform (usually using jQuery’s $.ajax() method) is clearly visible in the console, as expected. But on mainstream sites, even more so with Facebook, there don’t seem to be many visible XHR request going on, and they certainly don’t seem to be pinging the server every 10 seconds or so to check for new status updates…!
Alternatives I’ve read about are persistent connections, and dynamically inserting tags into the page which presumably pulls data from other sources making it available in the current page.
I never tried those sites but a common solution, used for example on Stack Overflow, is to use websockets. They enable an efficient pushing of information from the server to the client without polling.