Why is a DataTables AJAX redraw blocking for nearly 2 minutes?
Why is a DataTables AJAX redraw blocking for nearly 2 minutes?
So, I'm making a jQuery AJAX GET request (via refreshing a jQuery DataTables table) using getJSON within fnServerData that is consistently blocking for 1.7 - 2 minutes. I've added console.time(End) all around the code that makes the request and cannot find the delay in my code. It is definitely in getJSON. The Firebug net panel shows that "Blocking" takes up the vast majority of the entire AJAX request/response time. See: http://i.stack.imgur.com/bQc0W.jpg.
I have HTTPScoop open as well and it doesn't register the HTTP request until the last 2 seconds, which corresponds to the actual "Wait" time in Firebug. I've replicated this issue in Chrome using Developer Tools as well.
But here is the kicker: this issue only exists on the network at work, not at home. Two coworkers have confirmed that this issue doesn't exist using their home networks, just at work.
So, all of this evidence leads me to believe that this is a network issue, thought that doesn't make much sense. Does anyone have any ideas? Even possibilities to research would be great. Thank you.
For reference, I'm using jQuery 1.4.2, jQuery DataTables 1.7.6, with Rails 2.3.5 on the server side.
I have HTTPScoop open as well and it doesn't register the HTTP request until the last 2 seconds, which corresponds to the actual "Wait" time in Firebug. I've replicated this issue in Chrome using Developer Tools as well.
But here is the kicker: this issue only exists on the network at work, not at home. Two coworkers have confirmed that this issue doesn't exist using their home networks, just at work.
So, all of this evidence leads me to believe that this is a network issue, thought that doesn't make much sense. Does anyone have any ideas? Even possibilities to research would be great. Thank you.
For reference, I'm using jQuery 1.4.2, jQuery DataTables 1.7.6, with Rails 2.3.5 on the server side.
This discussion has been closed.
Replies
What does the Chrome networking panel show?
Allan