Preload modules of the file upload dialog

This prevents a delay when showing the file upload dialog.

Change-Id: I0c29def8e65302078d4fd528abee7c07373803e7
This commit is contained in:
Fomafix 2020-02-09 10:52:46 +01:00
parent 47a7e21216
commit 9542561b9c

View file

@ -560,6 +560,13 @@
return mw.msg( $( this ).attr( 'rel' ) );
} )
.removeAttr( 'rel' );
// Preload modules of file upload dialog.
mw.loader.load( [
'mediawiki.ForeignStructuredUpload.BookletLayout',
'mediawiki.Upload.Dialog',
'oojs-ui-windows'
] );
},
dialog: {
resizable: false,