Page MenuHomePhabricator

(Tracking) Use mw.loader.using for non essential modules
Closed, ResolvedPublic

Description

Currently photo uploads, talk page and soon the editor introduce lots of unnecessary code that not every user will use. Instead we should only load these modules when the user clicks on a button.

For example clicking on talk page for the first time should load the talk page code.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53782

Details

Reference
bz48718

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:24 AM
bzimport set Reference to bz48718.
bzimport added a subscriber: Unknown Object (MLST).

Cleanup template would be a good one to do this on first. We could conditionally load it if an article has issues.

Change 83943 had a related patch set uploaded by JGonera:
Load editor conditionally

https://gerrit.wikimedia.org/r/83943

Change 83958 had a related patch set uploaded by JGonera:
Load talk overlay dynamically

https://gerrit.wikimedia.org/r/83958

Change 84032 had a related patch set uploaded by JGonera:
Load photo uploader dynamically

https://gerrit.wikimedia.org/r/84032

Change 83958 merged by jenkins-bot:
Load talk overlay dynamically

https://gerrit.wikimedia.org/r/83958

Change 84032 merged by jenkins-bot:
Load photo uploader dynamically

https://gerrit.wikimedia.org/r/84032

I'm marking this as resolved. If there are any other modules that should be lazy loaded, these should be explicitly named and have their own bug.