Page MenuHomePhabricator

ResoureLoader: Add self-explanatory comment to load.php about ResourceLoader
Closed, DeclinedPublic

Description

ResourceLoader's load.php is nice, but it minifies (and to an extent, obfuscates) JavaScript and CSS. This harms an open Web.

load.php comes with a debug parameter, but this isn't obvious. An HTML comment explaining load.php or pointing to more information about load.php would be good to have in the page source.


Version: 1.22.0
Severity: enhancement

Details

Reference
bz51503

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:07 AM
bzimport set Reference to bz51503.
bzimport added a subscriber: Unknown Object (MLST).

Removing "easy" keyword for now until we know whether and if, what, this comment should say and point to.

Content or scripts can also contain urls to index.php and api.php, where are their parameters documented?

At least api.php has a help page when requested without any parameters. Perhaps we should point to https://www.mediawiki.org/wiki/ResourceLoader/Features or https://www.mediawiki.org/wiki/ResourceLoader/Features#Debug_mode from load.php, as it currently only says "no modules were requested. Max made me put this here"

Expand load.php's "no modules requested" output to be friendlier

Change-Id: I9300ec4d86a364034a70ce4204a0d9c1ac44b60f