To generaWhen generating the startup response for a wiki, ResourceLoader needs to compute the content and/or version of the `mediawiki.jqueryMsg` module,. ResourceLoader This currently indirectlyvolves invoking the Parser.
This is adding undesirableThe Parser adds performance overhead and generally seems like something that was likelyad that I believe may've been unintentional.
It is coming from WikibaseClient's `ResourceLoaderJqueryMsgModuleMagicWords ` hook.
Flame graph:
{F25024603}
Code:
<https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/e46b4e97f3dc87612adde85d5b2a512c49629956/client/includes/Hooks/MagicWordHookHandlers.php#126>
```lang=php
# function doResourceLoaderJqueryMsgModuleMagicWords {
$magicWords['WBREPONAME'] = $this->getRepoName( $lang );
# function getRepoName {
$message = new Message( $repoSiteName );
$message->inLanguage( $lang );
if ( $message->exists() ) {
return $message->parse();