Steps to replicate the issue (include links if applicable):
- Register some user scripts (e.g., TMg autoformatter, etc.).
- turn article preview off,
- Open dozens of tabs in edit mode,
- Wait until all icons are loaded.
What happens?:
- it takes time until all icons in edit-toolbar are loaded.
- startup.js line 747(↓) runs once for each js file, which results in O(n²) for each .js file added to Mediawiki.
// Stage 2: Execute 'loaded' modules with no unsatisfied dependencies for ( module in registry ) {
What should have happened instead?:
- startup should be faster
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):