Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -1206,7 +1206,8 @@ |
1207 | 1207 | * "text/javascript"; if no type is provided, text/javascript is assumed. |
1208 | 1208 | * @param async {Boolean} (optional) If true, load modules asynchronously |
1209 | 1209 | * even if document ready has not yet occurred. If false (default), |
1210 | | - * block before document ready and load async after |
| 1210 | + * block before document ready and load async after. If not set, true will |
| 1211 | + * be assumed if loading a URL, and false will be assumed otherwise. |
1211 | 1212 | */ |
1212 | 1213 | load: function ( modules, type, async ) { |
1213 | 1214 | var filtered, m; |
— | — | @@ -1219,6 +1220,10 @@ |
1220 | 1221 | if ( typeof modules === 'string' ) { |
1221 | 1222 | // Support adding arbitrary external scripts |
1222 | 1223 | if ( /^(https?:)?\/\//.test( modules ) ) { |
| 1224 | + if ( async === undefined ) { |
| 1225 | + // Assume async for bug 34542 |
| 1226 | + async = true; |
| 1227 | + } |
1223 | 1228 | if ( type === 'text/css' ) { |
1224 | 1229 | $( 'head' ).append( $( '<link>', { |
1225 | 1230 | rel: 'stylesheet', |