https://bugzilla.wikimedia.org/show_bug.cgi?id=40033

--- Comment #3 from Trevor Parscal <[email protected]> 2012-09-06 17:27:08 
UTC ---
The problem is that the module manifest being provided to mobile would include
lots of modules, many of which are not appropriate for mobile. This is a large
amount of data on a mobile phone that's purged every 5min on the client - that
sucks.

The solution to this problem is simple:

1) Add a "target" option to module registration
1.a) Omitting the target option will result in only the "default" target being
used
1.b) Specifying a target will exclusively provide the module to those targets
1.c) Target can be an array, allowing a module to target both "default",
"mobile" and others
1.d) There is intentionally no way to provide a module to all targets without
specifying their names to ensure that future targets are able to start fresh

2) Passing a "target" URL parameter to load.php will trigger the startup module
to only send a module manifest that includes modules that match that target
2.a) Make Startup module include resources/startup.[target].js files and move
non-generic stuff out of resources/startup.js (and possibly organize this stuff
into resources/mw.startup/ or something)

3) Add target options to mobile modules

4) Modify mobile front-end to include the startup module, and use the target
parameter

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to