Revert "Load all CSS in the top queue"
authorOri.livneh <ori@wikimedia.org>
Thu, 27 Aug 2015 17:02:11 +0000 (17:02 +0000)
committerOri.livneh <ori@wikimedia.org>
Thu, 27 Aug 2015 17:02:11 +0000 (17:02 +0000)
I don't want to roll this out until our WebPageTest infrastructure is ready
and can show whether or not this is beneficial. I should have indicated this
clearly on the change rather than leave it open, sorry.

This reverts commit b7c0e537ebb7216cd12a6c48fbaee7c2c7757c55.

Change-Id: I43e3295873a94da1c2febe2c1a19ad20ca914254

includes/OutputPage.php

index 80fd9ab..8d4720b 100644 (file)
@@ -3073,6 +3073,10 @@ class OutputPage extends ContextSource {
                        ResourceLoaderModule::TYPE_SCRIPTS
                );
 
+               $links[] = $this->makeResourceLoaderLink( $this->getModuleStyles( true, 'bottom' ),
+                       ResourceLoaderModule::TYPE_STYLES
+               );
+
                // Modules requests - let the client calculate dependencies and batch requests as it likes
                // Only load modules that have marked themselves for loading at the bottom
                $modules = $this->getModules( true, 'bottom' );
@@ -3664,7 +3668,7 @@ class OutputPage extends ContextSource {
                $otherTags = array(); // Tags to append after the normal <link> tags
                $resourceLoader = $this->getResourceLoader();
 
-               $moduleStyles = $this->getModuleStyles( true );
+               $moduleStyles = $this->getModuleStyles( true, 'top' );
 
                // Per-site custom styles
                $moduleStyles[] = 'site';