Background
There may be situations where Codex components are unnecessarily loaded multiple times on the same MediaWiki page, resulting in degraded performance. This is a known consequence of the way code splitting of Codex components in ResourceLoader was implemented as part of T349423.
A number of different solutions to this problem have been explored in T343141, T350052, and T350056.
In T350056#9552797, it was decided that more prototyping would be needed before committing to an approach, so this work was split out of T349423.
Open Questions
- What are the prime use cases motivating the need for this?
- How much does performance actually degrade?