Page MenuHomePhabricator

TemplateData module is loaded too often
Closed, ResolvedPublic


"ext.templateDataGenerator.ui" is loaded whenever VE is loaded, and on every edit page, which is wasteful

Event Timeline

Change 473526 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/TemplateData@master] Move editPage->editTemplatePage, create minimal editTemplatePage

Change 473526 merged by jenkins-bot:
[mediawiki/extensions/TemplateData@master] Rename module editPage→editTemplatePage, create minimal new editPage module

Copying solution from gerrit: VisualEditorPluginModules loads whenever VE loads, so this fix creates a minimal loader page to check if we are in the template namespace before loading the rest of the TemplateData init code.

Krinkle subscribed.

This appears to have been resolved. Is that correct?