On Fri, Oct 11, 2013 at 1:28 PM, Dan Andreescu dandreescu@wikimedia.org wrote: I know close to nothing about this, but I'm kind of interested in finding out. Would it be possible to $('little language toothed wheel thing').on('click', load something like jquery.uls.data)? That would already be 37.13KB.
On Fri, Oct 11, 2013 at 5:01 PM, Jon Robson jdlrobson@gmail.com wrote:
Yup and it's as simple as ... $('little language toothed wheel thing').on('click', function() { mw.loader.using( 'modulename', function() { // do thing with modulename } ); } );
Dan, Jon -- why not submit a patch for these changes? Lazy-loading sounds like the right idea.