[jQuery] Re: Multiple JQuery Bottleneck
Hi John Resig, Unfortunately, I was not able to upload the file via Nabble...I think that there must be a firewall in my company that blocks the traffic. However, I managed to upload it via 3rd party website. You can see my codes at http://www.yousendit.com/download/Y2orU2VnNDR3NUx2Wmc9PQ Thanks and apologies for any inconveniences. Best Regards David John Resig wrote: > > > Kind of hard to debug what you're talking about without seeing it. Do > you have an example? > > --John > > > > On Fri, Oct 17, 2008 at 10:17 AM, dvdavid2001 <[EMAIL PROTECTED]> > wrote: >> >> >> Hi guys, >> >> This is my 1st time asking the questions hence please bear with me if I >> did >> it wrongly or etc. >> >> I have a J2EE application that used jQuery quite a lot. There is one page >> that called jQuery 4 times upon loading. Out of these 4 calls, there is >> one >> jQuery call that took around 20-30 seconds depending on the criteria that >> user chose. >> >> However, unfortunately, I found that the other 3 jQuery calls are in fact >> waiting for that 1 jQuery call that took some time to complete before the >> rest can also be completed. I have added the debugging, it seems that the >> bottleneck occurred at the success method of .ajax. The other 3 calls are >> simply "stuck" there to wait for the 1 call to complete before they can >> proceed to implement their success methods. >> >> Any idea how to fix it? >> >> Thanks >> David >> -- >> View this message in context: >> http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p19938671.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p20062210.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Multiple JQuery Bottleneck
Hi John Resig, I have been able to simulate the problem in the simple process. I have one file called testJQuery.html which once the document has been completely loaded, it will call three JQuery method to call AJAX functions i.e. loadProcessOne(), loadProcessTwo() and loadProcessThree(). After successful, each method will update their own status respectively in testJQuery.html file. The first method i.e. loadProcessOne() will call my JSP page (test.jsp) that will do looping for around 4 seconds. Similarly, second method i.e. loadProcessTwo() will call my second JSP page (test2.jsp) that will do looping for 2 seconds. Lastly, the third method i.e. loadProcessThree() will just call a HTML page with no logic on it and should be really fast. However, once you run it, you can see that loadProcessThree() will update its status only after loadProcessTwo() has been completed (after 2 seconds). However, loadProcessThree() took less than 1 second to execute and should not wait until loadProcessTwo() has been completed. For your info, I am using jQuery 1.2.6. Any input? Thanks David John Resig wrote: > > > Kind of hard to debug what you're talking about without seeing it. Do > you have an example? > > --John > > > > On Fri, Oct 17, 2008 at 10:17 AM, dvdavid2001 <[EMAIL PROTECTED]> > wrote: >> >> >> Hi guys, >> >> This is my 1st time asking the questions hence please bear with me if I >> did >> it wrongly or etc. >> >> I have a J2EE application that used jQuery quite a lot. There is one page >> that called jQuery 4 times upon loading. Out of these 4 calls, there is >> one >> jQuery call that took around 20-30 seconds depending on the criteria that >> user chose. >> >> However, unfortunately, I found that the other 3 jQuery calls are in fact >> waiting for that 1 jQuery call that took some time to complete before the >> rest can also be completed. I have added the debugging, it seems that the >> bottleneck occurred at the success method of .ajax. The other 3 calls are >> simply "stuck" there to wait for the 1 call to complete before they can >> proceed to implement their success methods. >> >> Any idea how to fix it? >> >> Thanks >> David >> -- >> View this message in context: >> http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p19938671.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p20062061.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Multiple JQuery Bottleneck
Hi John, Thanks a lot for the reply. Well, the app is deployed in our intranet so I cannot provide you the link onto it. However, let me try to create one test page where I can send it to you by early next week. Thanks. David John Resig wrote: > > > Kind of hard to debug what you're talking about without seeing it. Do > you have an example? > > --John > > > > On Fri, Oct 17, 2008 at 10:17 AM, dvdavid2001 <[EMAIL PROTECTED]> > wrote: >> >> >> Hi guys, >> >> This is my 1st time asking the questions hence please bear with me if I >> did >> it wrongly or etc. >> >> I have a J2EE application that used jQuery quite a lot. There is one page >> that called jQuery 4 times upon loading. Out of these 4 calls, there is >> one >> jQuery call that took around 20-30 seconds depending on the criteria that >> user chose. >> >> However, unfortunately, I found that the other 3 jQuery calls are in fact >> waiting for that 1 jQuery call that took some time to complete before the >> rest can also be completed. I have added the debugging, it seems that the >> bottleneck occurred at the success method of .ajax. The other 3 calls are >> simply "stuck" there to wait for the 1 call to complete before they can >> proceed to implement their success methods. >> >> Any idea how to fix it? >> >> Thanks >> David >> -- >> View this message in context: >> http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p19938671.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p20052936.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Multiple JQuery Bottleneck
Kind of hard to debug what you're talking about without seeing it. Do you have an example? --John On Fri, Oct 17, 2008 at 10:17 AM, dvdavid2001 <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > This is my 1st time asking the questions hence please bear with me if I did > it wrongly or etc. > > I have a J2EE application that used jQuery quite a lot. There is one page > that called jQuery 4 times upon loading. Out of these 4 calls, there is one > jQuery call that took around 20-30 seconds depending on the criteria that > user chose. > > However, unfortunately, I found that the other 3 jQuery calls are in fact > waiting for that 1 jQuery call that took some time to complete before the > rest can also be completed. I have added the debugging, it seems that the > bottleneck occurred at the success method of .ajax. The other 3 calls are > simply "stuck" there to wait for the 1 call to complete before they can > proceed to implement their success methods. > > Any idea how to fix it? > > Thanks > David > -- > View this message in context: > http://www.nabble.com/Multiple-JQuery-Bottleneck-tp19938671s27240p19938671.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >