Skins: getDefaultStyles can now define render blocking CSS
authorjdlrobson <jdlrobson@gmail.com>
Tue, 10 Apr 2018 01:22:13 +0000 (18:22 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Thu, 26 Apr 2018 20:00:19 +0000 (13:00 -0700)
commita01d8be82c6eb6a39b9715b40b71f78817161a2a
tree232fd8308cdd94c9b6a6d40c6c7bf0e9d3c701c8
parentb1b0070dc7557311cc38e7cc99e4231ac4b92940
Skins: getDefaultStyles can now define render blocking CSS

This optimisation attempts to minimise loading the styles in places
they are not needed.

The logic is kept inside Skin::getDefaultModules to avoid fragmentation
of where modules get defined.

Update ApiParse to avoid repetition of code.

Bug: T42792
Bug: T42812
Change-Id: I59f02a7bab3baa9d43f6bc2ef1f549d9d31d8456
includes/OutputPage.php
includes/api/ApiParse.php
includes/skins/Skin.php
tests/phpunit/includes/skins/SkinTest.php [new file with mode: 0644]