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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:43:23+00:00 2026-05-29T18:43:23+00:00

I have a couple of XHR requests, which are handled by the Mootools Request

  • 0

I have a couple of XHR requests, which are handled by the Mootools Request class. This class offers some options to time the requests appropriately. What I’m doing:

  1. XHR: Post form data
  2. XHR: Refresh main pane
  3. XHR: Refresh subpane

Of course, requests 2 & 3 must wait before 1 is finished. So these are triggered within the onComplete event handler. However, the Request class offers options for handling multiple XHR requests. My question is about these two:

  1. The option link can be set to chain, in order to ‘chain’ them, or, as the Moo docs state:

    Any calls made to start while the request is running will be chained up, and will take place as soon as the current request has finished, one after another.

  2. The option async can be set to false, to prevent later requests from executing. According to the Moo docs:

    If set to false, the requests will be synchronous and freeze the browser during request.

Apart from the browser freezing part, what is exactly the difference? Which one should I use for request no. 1? Is it better to do it synchronously, so I’m sure nothing else executes in the meantime? And how about using both, does that make any sense?

  • 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-29T18:43:25+00:00Added an answer on May 29, 2026 at 6:43 pm

    well. the difference between link: chain and async: false is simple.

    first axiom – you are reusing your request instance and not making a new one. even if you are not, it can work with async. eg, if you have async: false, then this code:

    new Request({async:false}).send();
    
    // this one below will not run until the UI thread has finished
    new Request({async:false}).send();
    
    // nor will this
    somefunc();
    

    if you go with chain:

    var req = new Request({link: "chain"});
    
    req.send();
    // this won't run until the previous request has completed:
    req.send();
    // this will run independently of the above and may finish first as
    // they are not synchronous and this is a brand new instance.
    new Request().send();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of MooTools XHR requests which I want to handle synchronously.
I have some code, which was written couple of years ago and works only
I have couple of tags which has same name attribute. Something like this: <img
I have couple of files which is ocsmediation and smsgwmediation i use this script
I have couple questions regarding some C++ rules. Why am I able to call
I have couple of questions about AS3 variables handling by AVM/compiler/scope .1. This code
Here's the problem: I have couple of pages which gets its content from a
I have couple of input fields with the class link. All of them should
I have couple of objects(1 custom object called appointment and event object) which i
We have couple of macro which is defined in C++ DLL and we want

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.