ykuramochi / jquery-jsonp

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

Firefox displays "waiting for" in status bar when polling is occurring #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Firefox 3.6.
2. Run $.jsonp() against a script that takes some time to complete.
3. Observe "Waiting for.." in the status bar.

What is the expected output? What do you see instead?
The status bar to remain at "Done". It displays "Waiting for" <site>.

I understand this may be a limitation of Firefox and using a script tag. Is 
there any workaround? Could using async or similar help?

Original issue reported on code.google.com by michaelhood on 18 Sep 2010 at 6:09

GoogleCodeExporter commented 8 years ago
I just noticed you're using "async" already (line 233 of 2.1.2), sorry. Any 
other ideas?

Original comment by michaelhood on 18 Sep 2010 at 6:13

GoogleCodeExporter commented 8 years ago
Several questions:
- Does the script take some time to load OR to complete (ie execute) once 
loaded?
- Are you certain $.jsonp is the problem? Isn't there some kind of other 
resource being downloaded in parallel to the request?

If it actually is $.jsonp then I'm afraid there is very little I can do to 
prevent FF 3.6 from acting like it does seeing I took every step I knew of to 
prevent this behaviour.

Original comment by aubourg.julian on 20 Sep 2010 at 11:20

GoogleCodeExporter commented 8 years ago
Hi, thanks for the quick response.

I'm using it for long polling, the "waiting for" appears while it is connected 
to the server waiting for data to push. The script completes within a few ms of 
data being pushed; it's just a JSON payload that is usually a NOOP.

Original comment by michaelhood on 20 Sep 2010 at 3:22

GoogleCodeExporter commented 8 years ago
I'm quite confused seeing as http://jsguy.com/?p=103 seemed to report this was 
solved in jQuery-JSONP 2.x. If FF 3.6 has issues with long loading script tags, 
I'm afraid there's nothing I can do here. 

Original comment by aubourg.julian on 23 Sep 2010 at 11:09

GoogleCodeExporter commented 8 years ago
No further feedback. So I'm guessing that:
1) There was a problem elsewhere
2) OR this is a firefox glitch

Closing for now

Original comment by aubourg.julian on 2 Oct 2010 at 3:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've always had the exact same issue as the poster. I originally was using 
long-polling too but even when I disable long polling and run the request 
instantly, Firefox still says it for a split second. This is on the latest 
version of everything. 

Original comment by jstack...@gmail.com on 19 Dec 2010 at 2:20

GoogleCodeExporter commented 8 years ago
I should also add that Opera continuously spins loading as well. It's not just 
firefox. 

Original comment by jstack...@gmail.com on 19 Dec 2010 at 2:25