We'd like to remove the targets system from MediaWiki core. This would lead to less split caches when generating modules; would ensure that all new code gets run on mobile by default and that any code currently not running on mobile gets added leading to improved features.
One issue we ran into while pushing towards this is that Wikibase is making heavy use of the targets system with non-trivial fixes:
- wikibase.ui.entityViewInit
- wikibase.ui.entitysearch
- jquery.wikibase.toolbar.styles,wikibase.common
- wikibase.client.action.edit.collapsibleFooter
- wikibase.client.linkitem.init
- wikibase.client.miscStyles
- wikibase.lexeme.lexemeview
- wikibase.lexeme.styles
(Codesearch for those module names)
https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers#Target_system has some guidance on strategies for migrating this code. Code can still be updated to target only mobile/desktop site if necessary but must make use of a Wikimedia service rather than the targets system.
Options:
- Enable everything to target desktop/mobile.
- Use Services.
- Limit code to relevant skins