No description
Find a file
jdlrobson c1ca90ce4b Reduce ResourceLoader modules used by Monobook
MonoBook supports two modes - one that is responsive and one that
is not. To do this it adds 3 modules. These can be reduced to 1
module by loading all the code and adding client side checks to
determine whether to use it.

The skin--responsive class is added by core for responsive skins so
can be used to make that check.

This does lead to additional download for all users (particularly
the addition of oojs-ui.styles.icons-alerts) but given the default
behaviour is to load these, and non-responsive skin requires an opt
in I don't see this as a problem.

Thanks to gzip the increase in render blocking styles is minimal:

Before:
skins.monobook.styles: 15.21KB
skins.monobook.responsive: 16.14KB

After:
skins.monobook.styles: 16.63KB

See bug for QA plan.

Bug: T285492
Change-Id: I76bb644145539c8ec0220704c8fe9a78a4819c03
2021-08-03 12:45:59 -07:00
.phan Upgrade to newer phan 2019-03-20 19:43:14 -07:00
i18n Localisation updates from https://translatewiki.net. 2021-08-02 08:39:12 +02:00
includes Reduce ResourceLoader modules used by Monobook 2021-08-03 12:45:59 -07:00
resources Reduce ResourceLoader modules used by Monobook 2021-08-03 12:45:59 -07:00
screenshots Add skin screenshot for the installer 2017-08-11 15:36:22 -04:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-10 23:29:43 +00:00
.gitignore Upgrade to newer phan 2019-03-20 19:43:14 -07:00
.gitreview Use track=1 instead of defaultbranch=master in .gitreview 2016-10-24 17:30:30 -07:00
.phpcs.xml build: Updating dependencies 2021-07-21 19:56:43 +00:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-26 10:30:46 -08:00
.svgo.config.js build: Update SVGO to latest v2.3.0 and re-crush SVGs 2021-05-18 06:12:46 -07:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-02 21:55:44 +00:00
composer.json build: Updating dependencies 2021-07-21 19:56:43 +00:00
COPYING Use the plain-text GPL and fix 'license-name' to match SPDX conventions 2015-01-29 17:08:24 +01:00
Gruntfile.js build: Update SVGO to latest v2.3.0 and re-crush SVGs 2021-05-18 06:12:46 -07:00
package-lock.json build: Updating dependencies 2021-07-21 19:56:43 +00:00
package.json build: Updating dependencies 2021-07-21 19:56:43 +00:00
skin.json Reduce ResourceLoader modules used by Monobook 2021-08-03 12:45:59 -07:00