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

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krinklem...@gmail.com
            Summary|Load (user) scripts like    |Add support for loading
                   |modules                     |wiki pages as
                   |                            |scripts/styles in
                   |                            |ResourceLoader

--- Comment #3 from Krinkle <krinklem...@gmail.com> 2011-02-19 15:22:24 UTC ---
Changing the scope of the bug a bit.

Right now RL loads wiki pages in two places: Site-scripts
(MediaWiki:Common/skinname.js/css) and
user-scripts(User:Name/common/skinname.js/css).

We should simply make this into public functionality rather than internally for
those two modules:


/* Example */
['ext.Something'] = array(
    'scripts' => 'resources/something/something.else.js',
    'styles' => 'resources/something/something.else.css',

    'wikistyles' => 'MediaWiki:Something-customize.css', // <!-- from the wiki
    'wikiscripts' => 'MediaWiki:Something-customize.js', // <!-- from the wiki

    'dependencies' => 'jquery.ui.dialog',
    'messages' => array( 'something-title' , 'something-options' ).
);


That way those would simply be included in the same http request and
minified/combined (just like site/user scripts are now)

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to