Ticket #11942 (closed bug: invalid)
subsequent getScript callback does not always fire
|Reported by:||martijn@…||Owned by:||martijn@…|
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.
$.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.