Reduce output size of Skin::makeVariablesScript() for the head variables.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Aug 2009 19:55:28 +0000 (19:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Aug 2009 19:55:28 +0000 (19:55 +0000)
commite1cb8bb7b4ba0425d8af44197d9ea97d35751423
treee31dbd1cec927410189009eee2918a5206006dc4
parent94c25eb685449aa0248fb55dc2f4b47586ae29e5
Reduce output size of Skin::makeVariablesScript() for the head variables.
Drops a lot of unnecessary whitespace (but keeps newlines for legibility) and puts multiple defs into a single 'var' statement.
Reduces the head vars script from 1485 bytes to 1201 (nearly 20% savings), though this is of course reduced with gzipping (27 bytes, 4%). Cutting those bytes out of *every dang request* doesn't hurt though. :)
includes/Skin.php