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

The Archive Base Latest Questions

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

I have a website where I use jQuery AJAX calls to load HTML fragments

  • 0

I have a website where I use jQuery AJAX calls to load HTML fragments as an initialization step. Only when all of my HTML fragments were loaded, I start to render my site. My question is what is the best way to do it? How can I know efficiently when all of my ajax requests were done (that is, all of my HTML fragment are ready), if they were running concurrently? Is there any kind of a way to have a callback function that will be launched when all of my concurrent ajax jobs are done?
My current solution is to launch the next AJAX job whenever the previous AJAX job is completed… but this solution results in a serial execution, and a very messy code…

Is there any other convenient way to do it?

Thanks!

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

    Definitely. As you are using jQuery, you can take advantage of the built-in deferred and promises.

    You’ll also find on the Internet several articles that explain this very useful pattern.

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

Sidebar

Related Questions

I have a bunch of jQuery Ajax calls on my WordPress website. After making
I have created a website that intensively use Ajax to load its contents. I
I have two forms on my website, and I use jQuery to submit them,
I have a website that makes heavy use of AJAX. There is an almost
I have set up my website to use ASP.NET Membership. it all works fine
I have a website that uses ajax jquery and facebox. Demo here : http://temp.nevergone.eu/facebox.php
I have website that use XMLHttpRequest (jQuery, actually). I also have another site running
I have an asp.net webforms website and a wcf service. I use jQuery to
I have a problem with version of jQuery. The website I use, uses version
On my website I use a long polling jquery ajax function. This ajax call

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.