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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:21:27+00:00 2026-05-27T17:21:27+00:00

I am trying to perform an ajax.get using jquery within document.ready . But the

  • 0

I am trying to perform an ajax.get using jquery within document.ready . But the get seems to block the browser.

a dummy example :
http://jsfiddle.net/gauravshah/HpfXL/

I am trying to perform a get on document.ready , the result would take about 15-17 seconds to be generated on the server. So until then the browser seems to be blocked. for ex the background images do not animate.

Secondly in IE 8 the browser hangs itself until the request is received.

Similar question : Simple ajax call seems to be blocking
Suggesting to use delay for the call , But why to use delay ? I don’t find the solution right.

My actual code : ( not sure if it would be of any help)

$(document).ready(function(){
feat_id = "feat-2222"
$.post('/features/creator/get_existing/'+feat_id, {
        "url":url,
        'path':path,
        'parentURL':parentURL,
        'index':index
    },function(data){
        var new_id = $(data).attr('id')
        $(data).find('.featureLocation').html($(data).find('.featureLocation').html());
        $(obj).replaceWith(data)
    })
});
  • 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-27T17:21:28+00:00Added an answer on May 27, 2026 at 5:21 pm

    Arrived at the same solution as posted in the similar question

    jQuery(document).ready(function() {
      setTimeout(function () {
       $.getJSON("veryLongRequest", function(json) {
       alert("JSON Result: " + json[0].id);});
      }, 500); // You may need to adjust this to a longer delay.
    });
    

    Simple ajax call seems to be blocking

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

Sidebar

Related Questions

I am trying to perform a simple jQuery AJAX attempt using either a .get()
I'm trying to perform an Ajax query from within a Greasemonkey script, but I'm
I am trying to perform a nested AJAX call using the following code. The
I am trying to perform this AJAX post but for some reason I am
What I am trying to do is perform an AJAX request from within a
I am using Rails and jquery with RJS templates to perform various AJAX requests.
I'm trying to get a function to perform an Ajax query and then return
I am using CKEditor with JQuery AJAX and ASP.NET MVC. I am trying to
My website has been giving me intermittent errors when trying to perform any Ajax
I'm trying perform a relatively basic TCP socket send/receive operation on Windows CE using

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.