mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-14 19:31:55 +00:00
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:
parent
47a7e21216
commit
9542561b9c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue