Opened 11 years ago
Closed 11 years ago
#11942 closed bug (invalid)
subsequent getScript callback does not always fire
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
when calling getScript in Firefox 13 for a local successfully loading script file, the callback does not always fire, nor does the Deferred always get resolved. This happens even if the file question is not in the cache, or the cache is disabled.
The behaviour seems random. It fires, then it doesn't, and then it does.
The behavior I'm seeing is that this is only the case for a subsequent getScript call. The first one always gets its callback called, the second ones not always, even if it loads completely and successfully. It goes wrong about 1 in 5 times, but YMMV.
example code:
$(function() {
$.getScript("script1.js") always called back $.getScript("script2.js") not always called back
});
I don't know (yet) if this is specific to a certain type of scripts, or for all kinds of scripts. I also don't know if this behavior varies by any HTTP response headers.
Change History (3)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
Yes, we'd need a jsFiddle. Also ensure that your code is not encountering a script error in your code--check the console.
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Can you provide an online example (jsfiddle?) since there is no way to find out what response headers do you receive :) ?