Talk:Mobile web projects/VE on MobileFrontend

Add topic
From mediawiki.org
Latest comment: 10 years ago by Brion VIBBER

My most important question is which of these dependencies load at startup? Which can be pulled in dynamically? We should be aiming to keep that initial load as tiny as possible.

It would also be good to understand what each of these modules provide. For instance I'd assume we wouldn't need jQuery.placeholder on mobile - since all browsers we currently support support native placeholder attribute. Mobile currently has its own notification code so I wonder if mediawiki.notify could replace that. What functions does mediawiki.Uri provide? Even though each of these libraries is small we should be careful about adding them all. It's a slippery slope :) Jdlrobson (talk) 18:43, 20 October 2013 (UTC)Reply

From the numbers listed in the parent page it sounds like there's about 15-30kb of code currently loaded before the editor is activated, though I'd have to check which modules. Presumably this can be shaved down to about 1kb, since all you actually need is enough code to hook an event handler and load another module. :) --brion (talk) 18:28, 21 October 2013 (UTC)Reply