> On Fri, Oct 11, 2013 at 1:28 PM, Dan Andreescu <dandree...@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 <jdlrob...@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.

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to