jenkins-bot has submitted this change and it was merged.

Change subject: api: Load mediawiki.apipretty with addModuleStyles
......................................................................


api: Load mediawiki.apipretty with addModuleStyles

Follows-up d25cb99. addModules() is async and causes a flash
of unstyled content. E.g. the h1.firstHeading renders and then
disappears on pages like:

<https://en.wikipedia.org/w/api.php?action=purge>

Change-Id: I74c6386d2c5f318987dac103a76c0bc2af6e2653
---
M includes/api/ApiFormatBase.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Anomie: Looks good to me, but someone else must approve
  Gilles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php
index 4d80163..f54f20f 100644
--- a/includes/api/ApiFormatBase.php
+++ b/includes/api/ApiFormatBase.php
@@ -182,7 +182,7 @@
                        $out = new OutputPage( $context );
                        $context->setOutput( $out );
 
-                       $out->addModules( 'mediawiki.apipretty' );
+                       $out->addModuleStyles( 'mediawiki.apipretty' );
                        $out->setPageTitle( $context->msg( 'api-format-title' ) 
);
 
                        // When the format without suffix 'fm' is defined, 
there is a non-html version

-- 
To view, visit https://gerrit.wikimedia.org/r/234020
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I74c6386d2c5f318987dac103a76c0bc2af6e2653
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Gilles <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to