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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:30:19+00:00 2026-06-15T12:30:19+00:00

When making an async WinJS call that returns a promise, how frequently does the

  • 0

When making an async WinJS call that returns a promise, how frequently does the promise’s progress callback function get called? Consider the following code:

WinJS.xhr({ url: "http://localhost:51299/api/values" }).done(

    function complete() {
        console.log("complete: " + new Date().getTime());
    },

    function error() {
    },

    function progress() {
        console.log("progress: " + new Date().getTime());
    }

);

When I run this code, I see the progress: message multiple times per millisecond, and overall I might see the progress: message 100-200 times during the 1-2 seconds it takes to get all the data back from the xhr call.

  1. Does the progress function get called on a set interval, and if so, what is that interval?
  2. Is it a performance issue to let it run this frequently?
  3. Is it better practice to limit it to run less often using some sort of timer function, or is the impact insignificant?
  • 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-15T12:30:20+00:00Added an answer on June 15, 2026 at 12:30 pm

    Progress callbacks are determined by the source of the promise – in this case, the XHR system. You don’t get control over when they come out. In this case, XmlHttpRequest is updating progress. There’s no overall control, it’s all up to the async operation when, and if, progress updates happen.

    You should consider throttling your responses to progress updates if you find a performance impact, but it’s hard to say in general what to do, it depends on your app.

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

Sidebar

Related Questions

I am creating a WCF WorkflowService and the client is making an async call
I am making some probes with async CTP but I don't get a good
I've got an asp.net web page that is making 7 async requests to a
I insert a record into the database by making an async AJAX call. After
I'm making a web call using the async framework. I'm getting an Error noted
I am making a call to a server which returns a JSON encoded object.
I'm making a mailing list script that takes advantage of ajax (async=false) to send
I have a c# .NET winforms app making this async call: simpleDelegate.BeginInvoke(null, null); My
Making lots of progress in a rails 3.1 to 3.2.6 upgrade for a Heroku
Making an adobe flex ui in which data that is calculated must use proprietary

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.