Project Information
- Name of tool/project: UseResource
- Project home page: https://www.mediawiki.org/wiki/Extension:UseResource
- Name of team requesting review: N/A
- Primary contact: BrandonXLF
- Target date for deployment: N/A
- Link to code repository / patchset: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/UseResource/
Description of the tool/project:
The UseResouce uses the <usescript> and <usestyle> tags to allow for the loading of JavaScript and CSS pages in the MediaWiki namespace on a per-page basis.
Description of how the tool will be used at WMF:
The extension would be used to allow loading JavaScript and their accompanying CSS files relating to certain projects to only be loaded on the pages where they are needed so they wouldn't have to be loaded on every pageview through Common.js/Common.js or the Gadgets extension.
Dependencies
None
Has this project been reviewed before?
No
Working test environment
Install like any normal MediaWiki extension (instructions). To test extension you can create a JavaScript or CSS file in the MediaWiki namespace and load it using <usescript src="FILE"> (for JavaScript) or <usestyle src="FILE"> (for CSS).
Post-deployment
No time at the time, BrandonXLF is responsible for developing and maintaining the extension.