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 9158789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:19:58+00:00 2026-06-17T13:19:58+00:00

Knowing that Javascript is strictly single threaded and settimeout doesn’t spawn new threads. Instead

  • 0

Knowing that

  • Javascript is strictly single threaded and settimeout doesn’t spawn
    new threads. Instead it follows event-loop model
  • Worker threads are new HTML5 features and its support is still not
    available in all HTML5 browsers

Which one I should be using for background data download purpose? If you have any experience or have any benchmark data available please share.

Not sure how it matters to question, but still for the sake of completeness I would like to mention that data is expected to be in XML format and multiple server-side services will be invoked to get the data. Is there a framework already available which caters to both hand-held device based browsers and desktop based browsers data downloading?

  • 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-17T13:20:00+00:00Added an answer on June 17, 2026 at 1:20 pm

    Worker thread are not supported on all major browsers yet, so I don’t think it will be great idea to involve worker-thread into your design unless you only want to support latest browsers.

    All the Ajax calls can be made in parallel, but I guess your problem will be how to know that all ajax call’s response has come and data is inserted/updated into browser’s database. One way to know that all AJAX responses have been dealt with would be to chain all the AJAX calls. But this will warrant you to hard-code the sequence of AJAX calls into your code-base. If that is not desirable than you would need a separate asynch flow to keep checking if all the AJAX calls have been responded to. You can achieve this by setting a flag for each ajax call and set that to true when the response has been used. Then you will keep checking the status of all the flag in an another flow (started using settimeout).

    I am aware of any existing framework to take care of such complex activity, so you will have to write the code yourself for the same. Hope this would have helped you in giving some direction.

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

Sidebar

Related Questions

I'm looking for a DOM event that I can listen to with JavaScript for
I'm working on a new project in JavaScript that I want to release later.
I'm having an issue with Javascript executing things in an order that doesn't make
How would you go about knowing that ajax requests are related? Normally with HTTP-HTML
I wrote a program that worked as a server. Knowing that accept was blocking
I've been using Mootools for the last couple of months without knowing that MS
I need to be able to access a property via reflection, and, knowing that
If I set cookies like this: $_SESSION[md5('ponies'.$salt)] = $value; so that only knowing the
In Android, assuming that I have files in /data/data/package.name/, without knowing the names or
Without knowing i typed 'far' instead of 'var' by my mistake.I noticed the keyword

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.