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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:44:57+00:00 2026-06-07T11:44:57+00:00

I am developing a web application that will rely on a number of jQuery

  • 0

I am developing a web application that will rely on a number of jQuery AJAX requests. In my developing environment, normally PHP will process and return the data in <300ms.

In the production environment on a typical and small web hosting setup, what factors should I consider in setting an appropriate timeout for async, jQuery GET requests so that the client can be kept informed?

  • 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-07T11:44:59+00:00Added an answer on June 7, 2026 at 11:44 am

    First off, I assume we’re talking about async requests that don’t lock up the browser.

    Second off, it really depends upon the performance profile of the server responsible for serving that request and what the response time distribution looks like for successful requests/responses.

    If successful requests can be completed in anywhere from a few milliseconds to several minutes depending upon the type of request or the server load, then you may as well let the timeout be at least as long as a successful request could take (allow the user the option of waiting for a successful request to complete). If you are worried about the user getting impatient, then add a cancel or stop button after 10 seconds if the request doesn’t complete quickly so an impatient user can bail, but a patient user can wait for it to complete.

    If, on the other hand, you know from studying the server or from experience that if the request hasn’t completed in 15 seconds, then it’s highly unlikely that it’s going to complete successfully, then there’s really no point in setting the timeout longer than that.

    Third off, it also depends upon how important the ajax call is and how it fits in with the user interaction. If it’s an optional background operation (perhaps an autocompletion match request), you can give up much sooner and just schedule the next request for some time in the future. If it’s a direct user action (like a Save button), then you really ought to try hard to let the request complete successfully and give it a much longer time.

    To summarize, you should consider these factors:

    1. Is the ajax request optional in the background (like auto-complete) or a specific user action (like save or load)?

    2. What is the longest time that the server might take for a successful ajax response? You should give the patient user the ability to wait at least that long for the request to succeed.

    3. Are you offering the impatient user the ability to cancel a long running request? If so, you can let the request go longer.

    4. If you have no idea how responsive the server is, then you should probably let it run at least 120 seconds since some servers might take that long, but you should consider offering the impatient user the ability to abort the request and go about their other business.

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

Sidebar

Related Questions

I'm developing a web application that will interact with google APIs. Since the only
I am designing/developing a web application that will ultimately deploy as a WAR to
I'm developing a Web application that will let users upload images. My concern is
I am developing a single web application that will dynamically change its content depending
I'm developing a web application that has to support lots of simultaneous requests, and
We have plans of developing a web application that will have to communicate with
Greetings friends, I am developing a web application that will allow the customer to
I am developing a web application that will redirect users to an outside web
I'm developing a web application that will need to be localized to English and
I am looking to start developing a relatively simple web application that will pull

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.