Closed Bug 719432 Opened 14 years ago Closed 11 years ago

Extremely slow handling of asynchronous ajax requests

Categories

(Firefox :: Untriaged, defect)

10 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hein_tibosch, Unassigned)

Details

(Keywords: perf)

Attachments

(1 file)

1.48 KB, application/octet-stream
Details
Attached file slow_ajax.js
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0 Build ID: 20120111092507 Steps to reproduce: After each change of a slider, an $.ajax GET request is issued with "async : true" This occurs about each 60 ms The web-server is running on a LAN and extremely fast (responds within 1 ms, checked with Wireshark) Versions tested: 8.0, 9.0, and 10.0(beta) Actual results: The requests get into a queue and will be handled much too late. It takes up to a second before the requests are finished (success or complete event) Within Bugzilla, everything looks perfect, it shows response times of about 5 ms, but I guess the timer only starts once the request is getting handled Expected results: The ajax request should be handled immediately Compared with Chrome and IE: these browsers handle all sync requests within 5 ms, async requests take a little longer, up to 20 ms
Keywords: perf
Thanks for you report and sorry it took so long to reply. If this is still an issue, and you're interested in following up, could you attach a complete testcase (an HTML page that can be used to reproduce the problem)?
Flags: needinfo?(hein_tibosch)
Hi Nickolay, Thanks for giving attention to this issue. Today I retested $.ajax() with Firefox 32.0.3 and now the results are good: There is no difference in response time between async:true or async:false. The response times are all around 20 ms (in earlier versions 1,000 ms) Other browsers (Chrome and IE) are still doing faster though, with an average of 10 ms. Platform tested: Win7, webserver was on the LAN. I've updated the status of this issue to "Resolved/Works for me" Regards, Hein
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(hein_tibosch)
Resolution: --- → WORKSFORME
OK, that's nice to know. Thanks for writing back!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: