On: https://www.wikidata.org/wiki/Wikidata:Main_Page
[2x] XMLHttpRequest cannot load https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/lib/jquery.uls/i18n/en.json. Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.
[2x] XMLHttpRequest cannot load https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/i18n/en.json. Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.
ULS: Unknown language als. load.php:235
ULS: Unknown language bat-smg. load.php:235
ULS: Unknown language fiu-vro. load.php:235
[16x] XMLHttpRequest cannot load https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/i18n/en.json. Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.
- The extension documentation[1] contains nothing about requiring cross-domain privileges to work. If this is a requirement, then it must be documented and properly configured on Wikimedia (which it isn't right now)
- It repeatedly fails for the same stuff. 2x 2x for jquery.uls's en.json and a whopping 16 shots at the main en.json file. Whatever caching mechanism is in place, is broken. It probably doesn't cover for the fact that ajax is asynchronous (storing result objects instead of promises/deferreds)
- 3 requests for unknown languages
And all this when merely viewing an English page in an English browser without being logged-in before having touched anything on the page.
Should it be requesting all that data all the time? I suppose the trigger label in the top corner is provided by the MediaWiki component, it should defer further init until if/when needed.
[1] https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector
Version: master
Severity: normal
Whiteboard: code-quality
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=45047