title: jQuery getScript() sometimes works fine, sometimes returns "parsererror" and TypeError Exception
body: <p>I have strange problem with jQuery (currently 1.9.1 version), I am using getScript() function to load some additional JS library on demand. It loads everytime the same library from the same libraries, so there is no difference between multiple requests. It is always returned from server as "application/javascript". I use only one browser for these requests.</p>
  
  <pre><code>$.getScript(scripts[s], function(){
    onScriptLoaded();
  }).done(function(script, textStatus) {
    console.log(textStatus);
  }).fail(function(jqxhr, settings, exception) {
    console.log(jqxhr, settings, exception);
  });
  </code></pre>
  
  <p>It usually runs fine, <code>.done()</code> is called and textStatus is <code>success</code>. However, about 1 in 10 requests, it fails and <code>.fail()</code> is called - <code>settings</code> contains <code>parsererror</code> and <code>exceoption</code> contains <code>TypeError {}</code>.</p>
  
  <p>I really have no idea why is this happening, because 9 times out of 10 it works fine. But why it sometimes fails, I really don't know. Can anybody shed some light on this problem ?</p>
  
  <p>I will be glad for any hints or help.</p>