Last modified: 2011-02-14 22:14:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29415, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27415 - Implement mw.loader.wait() and thus support multiple mw.loader.go()'s
Implement mw.loader.wait() and thus support multiple mw.loader.go()'s
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-14 22:12 UTC by Krinkle
Modified: 2011-02-14 22:14 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2011-02-14 22:12:02 UTC
In a laer version of ResourceLoader we should support registering modules on the client side (ie. which scripts, styles, dependancies, messages etc.) however aside from that being able to queue things in general will be helpful.

All modules loaded by default are queued once and then loaded at once with mw.loader.go().

In order to allow wikis, users and gadget makers to use multiple scripts with one http request as well a mw.loader.wait() needs to be implemented.

This way a script can have:

mw.loader.wait();
mw.loader.load(["jquery.colorUtil", "jquery.hoverIntent", "jquery.ui.autocomplete"]);
mw.loader.go();
Comment 1 Krinkle 2011-02-14 22:14:00 UTC
Loading multiple at once can be done by using an array in mw.loader.load(). this already combines them.

Also mw.loader.using() supports this behaviour.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links