I'm trying to learn all i can about the slow load technique (as described here: http://www.obviously.com/tech_tips/slow_load_technique) in javascript, for making near-realtime chat applications and the like.
I know facebook uses it too, for its chat. It first calls this url: http://0.1.channel.facebook.com/x/a_bunch_of_parameters which lingers a long time, with connection: keep-alive. Then it suddenly returns with this javascript:
for (;;);{"t":"continue"}
I'm not logged in into the chat, so it obviously doesn't include any chat data, but i'm wondering what the surrounding javascript that processes the result would look like. Probably it parses the json and sees the t-key has the value of continue. What would the infinite for-loop accomplish though?
The facebook page has a huge javascript callstack, so i can't plough through it. Can someone guess or does someone know? Thanks in advance!