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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:28:42+00:00 2026-05-19T05:28:42+00:00

I try to do some simple Ajax call with refresh of page content with

  • 0

I try to do some simple Ajax call with refresh of page content with this code snippet:

$("a.ajaxify-watched").bind("click", function(event) {

    $item = $(this);

    $.ajax({
        url: $(this).attr("href"),
        global: false,
        type: "GET",
        data: ({
            callback : "inline"
        }),
        dataType: "json",
        async:false,
        success: function(msg){
            if (msg.status == 200) {
                toggleStatus($item, msg)
            }
        }
    });
    return false;
});

This works perfect and for me theres nothing to worry about the code but the speed it gets executed.

The first time everything works really fine: 47ms for the operation. But after that every other Ajax call get a constant delay of 2.6 seconds – everytime. I checked with Firebug and found that it is shown as “Waiting Time”.

I can’t really say whats happening here.
We recently switched from pure Apache2 to Nginx Caching Reverse Proxy with load balancing with Apache as Backend Php Interpreter. We could see a huge performance boost and everything is working really fine. I can’t tell when my problem first appeared and if it really has something to with our new server setup.

I just found out today, that there is a problem with jQuery so I just wanted to give as much info as possible.

Thank you and let me know if I should provide additional information.

  • 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-19T05:28:44+00:00Added an answer on May 19, 2026 at 5:28 am

    If Firebug indicates waiting it looks like a server issue.

    Is there a way to call the pages directly without ajax? If so try to do that and check if the pages load fast or slow?

    Also, check that you do not have any events triggering on ajax that might affect this.

    Most servers will only handle a single page load from the same server so multiple page loads is handled in queue, so if you have parallell ajax calls they might have to wait for each other.

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

Sidebar

Related Questions

I'm bored with surrounding code with try catch like this.. try { //some boring
I try to draw some lines with different colors. This code tries to draw
I'm new to Play and try some very simple things with AJAX. Right now
I am trying to load some content into a page using Ajax. The html
I wanted to make some simple file recovery software, where I want to try
I try to create a very simple app using windows API. I've done some
I have some problem's with a simple application in JSF 2.0. I try to
We have following code: try { // some code throwing MyException } catch (MyException
Here's an interesting puzzle. I downloaded Snippet Compiler to try some stuff out, and
I read Japanese, and want to try processing some Japanese text. I tried this

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.