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:
Ed Sanders 2024-11-21 13:23:31 +00:00
parent 3085fba0f3
commit 3e28af7602

View file

@ -33,7 +33,7 @@
* @return {jQuery.Promise} Promise resolved with deflated HTML
*/
deflate: function ( html ) {
return mw.loader.using( 'mediawiki.deflate' ).then( () => mw.deflate( html ) );
return mw.loader.using( 'mediawiki.deflate' ).then( () => mw.deflateAsync( html ) );
},