mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
ArticleTargetSaver: Use mw.deflateAsync
mw.deflate is deprecated. mw.deflateAsync is faster in supported browsers. Change-Id: Ia16e5823365b55b741f3184572b7bdeb5bbb1bd6 Depends-On: I722ebb03c0db7c7b3ee16cc8881e41909142cee9
This commit is contained in:
parent
3085fba0f3
commit
3e28af7602
|
@ -33,7 +33,7 @@
|
||||||
* @return {jQuery.Promise} Promise resolved with deflated HTML
|
* @return {jQuery.Promise} Promise resolved with deflated HTML
|
||||||
*/
|
*/
|
||||||
deflate: function ( html ) {
|
deflate: function ( html ) {
|
||||||
return mw.loader.using( 'mediawiki.deflate' ).then( () => mw.deflate( html ) );
|
return mw.loader.using( 'mediawiki.deflate' ).then( () => mw.deflateAsync( html ) );
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue