From 3e28af76021546d449c957d37032386149d196f6 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 21 Nov 2024 13:23:31 +0000 Subject: [PATCH] ArticleTargetSaver: Use mw.deflateAsync mw.deflate is deprecated. mw.deflateAsync is faster in supported browsers. Change-Id: Ia16e5823365b55b741f3184572b7bdeb5bbb1bd6 Depends-On: I722ebb03c0db7c7b3ee16cc8881e41909142cee9 --- modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js index 922867755b..1281dcfe18 100644 --- a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js +++ b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js @@ -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 ) ); },