|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Delay between Ajax Request received and javascript code runningI'm having an odd error and I don't know where to look to debug it.
I'm using Firefox 3.5.3 (problem exists with IE6 as well), with Firebug 1.4.3 and mootools 1.2.4 on Win2k. I send an Ajax request (via POST) and get a response within about 200ms (no problem). Then often (not always) there is a delay (big problem) of a few seconds, then my javascript code to process the ajax response runs for about 95ms (no problem). Using the Friebug Net tab, I can see that the Ajax request response is fast, and the profiler shows that the javascript code to process the response runs fast. I can't see what is causing the delay between receiving the Ajax response and the execution of my javascript code to process the Ajax response. Before I go through the process of reducing the code to something simple that I can post here that still exibits the error, I'm wondering where I can look to discover the cause of the delay since Firebug profiler shows no Javascript code running during the long delay between the receipt of the Ajax request response (as witnessed in the NET tab) and the execution of my javascript code to process the Ajax response and it doesn't happen every time, just most of the time. I've cross posted this on a mootools forum hoping someone there has a clue but my question here is a little different. Can Firebug do anything to help me discover the cause/location of the delay? The Net tab, profiler, even the Error Console, offer no clues. -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@.... To unsubscribe from this group, send email to firebug+unsubscribe@.... For more options, visit this group at http://groups.google.com/group/firebug?hl=en. |
|
|
Re: Delay between Ajax Request received and javascript code runningI've since discovered that the behaviour changes when I change
servers. One server shows the delay, the other does not. So, since the Firebug Net panel shows the delay occurs after the Ajax response was received and before my javascript code is triggered to process the ajax response, what effect could the server have? Is there further communication with the server after the ajax response is received and before my javascript code is triggered to respond? -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@.... To unsubscribe from this group, send email to firebug+unsubscribe@.... For more options, visit this group at http://groups.google.com/group/firebug?hl=en. |
|
|
Re: Delay between Ajax Request received and javascript code running> So, since the Firebug Net panel shows the delay occurs after the Ajax
> response was received and before my javascript code is triggered to > process the ajax response, what effect could the server have? I would recommend to use Firebug 1.5b1 + Firefox 3.6 http://getfirebug.com/releases/firebug/1.5X/ http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-1.9.2 Important bug was fixed in Fx3.6 and the Net panel timeline is more accurate. See also my blog post: http://www.softwareishard.com/blog/firebug/firebug-http-time-monitor/ Honza On Oct 27, 4:51 pm, batman42ca <batman4...@...> wrote: > I've since discovered that the behaviour changes when I change > servers. One server shows the delay, the other does not. > > So, since the Firebug Net panel shows the delay occurs after the Ajax > response was received and before my javascript code is triggered to > process the ajax response, what effect could the server have? Is there > further communication with the server after the ajax response is > received and before my javascript code is triggered to respond? -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@.... To unsubscribe from this group, send email to firebug+unsubscribe@.... For more options, visit this group at http://groups.google.com/group/firebug?hl=en. |
| Free embeddable forum powered by Nabble | Forum Help |