Steps to reproduce:
- Load MediaWiki from localhost.
- Stop the web server. -> All further requests get aborted.
- Try to make a request with $.get():
var d = $.get( '/' ); // The request gets aborted.
- Enter
d.state(); // "rejected"
- Try to make a request with mw.loader.using():
var d = mw.loader.using( 'mediawiki.special', function () { console.log( 'ready' ); }, function () { console.log( 'error' ); } ); // The request gets aborted.
- Enter
d.state(); // "pending"
- Expected result: "rejected"
=> Upstream: https://github.com/jquery/jquery/issues/2413