Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3239070
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:55:36+00:00 2026-05-17T17:55:36+00:00

I’m trying to learn all i can about the slow load technique (as described

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:55:37+00:00Added an answer on May 17, 2026 at 5:55 pm

    see here: How to restrict JSON access?

    The infinite loop is a measure of protection from outside sources calling the script. If I want to call that link from my site, i’d have to do it with

    <script src="http://0.1.channel.facebook.com/x/a_bunch_of_parameters"></script>
    

    which would immediately start the infinite loop. I couldn’t get at the actual message facebook has returned.

    facebook can use a XMLHttpRequest to pull from that address and parse out the infinite loop code before evaluating the response message. I can’t do that from my site because of cross-domain security.

    For facebook’s use, the message could be something like

    for (;;);
    { 
       "msg" : {
    
          "from" : "lincolnk",
          "content": "derp!"
        }
    }
    

    they would parse out the javascript object which contains whatever the other person wrote and dispaly it to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.