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

  • SEARCH
  • Home
  • 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 8042183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:29:34+00:00 2026-06-05T04:29:34+00:00

Alright, Here it goes: I’m currently implementing a software which autorefresh/autopull/autoreload the data to

  • 0

Alright, Here it goes:

I’m currently implementing a software which autorefresh/autopull/autoreload the data to keep the screen live by using AJAX.

This is actually working, but I know I´ve used the simplest approach which is:

  1. SetInterval (javascript)
  2. Call the Refresh Method over and over each n seconds.
  3. Read the Json Data, rebuild the HTML and update it.

This can also be done by just calling a SetTimeOut (javascript) and the end of the AJAX request.

In the refresh method I internally check that it´s not being called simultaneously, etc.

However… this is the simplest approach, it works but, in slow computers, firefox and ie, I can see this activity sometimes freezes the browser, and I know this might not be necessary because of the AJAX call, but how “intensive” is the javascript operation overall… but, after running a profiler, Overall javascript (using jquery by the way) seem to be fine. Also if I disable the autorefresh, the browser wont freeze by short seconds in slow computers.

I decided to investigate how several of the majors AJAX applications works out there.

Facebook for instance.. they do a request all the time, every N seconds, interpret the JSON and update the screen, but, google docs… I can seem to find any request.. This is maybe because: they are just telling the javascript debugger engine that they do not want their request to be logged??, or, are they using another approach to the refresh dilemma?

I read in another answer here at stackoverflow, that Google Docs keeps an open connection..

Can this be the answer? http://ajaxpatterns.org/HTTP_Streaming

What do you guys know about this?

Just as a side note, the application I´m developing is meant to be accessed by thousands of users at a time, and I know the JavaScript refresh routine only tells a little part of the history, but the Server Side Application and the database is currently supporting such a load according to the stress tests I did by using several thousands of virtualized stations. I just want to know what you think about the client browser problem specifically.

Regards and
If you are still reading this..
Thanks you for your time.

  • 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-06-05T04:29:35+00:00Added an answer on June 5, 2026 at 4:29 am

    I suspect they’re using WebSockets. Browser support is flaky, so your mileage may vary with this approach.

    You may also want to look at APE (ajax push engine), which is a decent implementation of long polling with a client/server architecture.

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

Sidebar

Related Questions

Alright, here goes. I'm making a very basic app, and I want the user
Alright, hard to phrase an exact title for this question, but here goes... I
Alright so here is the question. I have a user class which contains a
Alright, so here's the dealio: I'm working on a Ruby app that'll take data
Alright here it goes. Normally I'm doing alright in HTML, but for this specific
I will describe the problem as simple as i can. alright, here goes the
Alright, here we go! I am currently developing an iPhone app that will work
Alright, I have a strange one here. We currently have a tools application that
Alright so here it goes, I have my user system working perfectly, and now
Alright, I have never asked a question here before, but here goes. In my

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.