rowmoin / jquery-jsonp

Automatically exported from code.google.com/p/jquery-jsonp
0 stars 0 forks source link

Simultaneous calls sometimes result in error in IE9 even on 200 response with valid JSON #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make 2 jsonp calls in quick succession on page load to servers that will 
provide valid JSON response.
2. Add success/error handlers to these calls.
3. Test several times using IE9 and observe which handlers are called.

What is the expected output? What do you see instead?
Expected: calls always succeed
Actual: occasionally one of the calls will hit the error handler

What version of the product are you using? On what operating system?
I am using what is currently the latest release(2.2.0). The problem is being 
displayed in IE9 on Windows 7.

Please provide any additional information below.
I have not been able to reproduce this on any other browser (chrome/ff) or even 
IE8, it seems specific to IE9.
I thought it might be a problem with using the same callback (a known problem 
that had already been fixed for IE), but even if I manually set callback to 
different values, I could still reproduce the problem.
The problem only seems to happen when the calls are made close together, but 
does not always happen in this case. I have observed the problem when the calls 
were around 100ms apart, but not much further than that. Sometimes the calls 
succeed even when calls are only 1ms apart.
The issue is sporadic. I would estimate it was happening about 15% of the time 
during my tests.

Original issue reported on code.google.com by lancehal...@gmail.com on 13 Jan 2012 at 5:40

GoogleCodeExporter commented 9 years ago
i've had some reports of intermittent failures, but have not reproduced myself.

Original comment by andrew.s...@gmail.com on 19 Jan 2012 at 1:13

GoogleCodeExporter commented 9 years ago
I'd really need a jsfiddle that could reproduce the issue.

Original comment by jul...@creative-area.net on 19 Jan 2012 at 2:40

GoogleCodeExporter commented 9 years ago
I'm experiencing the same problem with IE9 (Chrome and FF are fine).  Here is 
the jsfiddle

http://jsfiddle.net/hornizuka/DrXKT/

If you change back to the previous version (ex. 2.1.4). The problem will go 
away.  

Original comment by derek.pc...@gmail.com on 3 Feb 2012 at 7:32

GoogleCodeExporter commented 9 years ago
Fixed in 2.2.1.

https://github.com/jaubourg/jquery-jsonp/commit/e0ade2e2bb5f858d44d9e4f5643ea15f
9063c64d

Original comment by jul...@creative-area.net on 4 Feb 2012 at 2:52