Page MenuHomePhabricator

Create a module for MediaWiki:Filepage.css and use it
Closed, ResolvedPublic

Description

Instead of

<link rel="stylesheet" href="http://commons.wikimedia.org/w/index.php?title=MediaWiki:Filepage.css&amp;action=raw&amp;maxage=2678400&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=2678400" type="text/css" media="all" />

it should be a call to load.php of the foreign wiki loading module=filepage with only=styles and in the <head> section of the DOM ( addModuleScripts ).

This way it'll be minified and cached accordingly

See also bug 28083 (Only load it if the page exists / non-empty on the remote wiki)


Version: 1.17.x
Severity: enhancement

Details

Reference
bz28084

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:36 PM
bzimport set Reference to bz28084.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

Take into account that multiple foreign repos may exist and as such the module should accept a parameter to indicate which repo to get the CSS from.

Removing dependancy on ResourceLoader 1.0 implementation. This is a seperate issue (not even a bug, btu an enhancement)

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:29 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:20 AM