Ticket #11942 (closed bug: invalid)
subsequent getScript callback does not always fire
| Reported by: | martijn@… | Owned by: | martijn@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:2 Changed 11 months ago by dmethvin
- Owner set to martijn@…
- Status changed from new to 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 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
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!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Can you provide an online example (jsfiddle?) since there is no way to find out what response headers do you receive :) ?