Page MenuHomePhabricator

Allow queing load()'s after the first go() as well by implementing a stop()
Closed, DeclinedPublic

Description

Currently there's only one load-queue being made and as soon as go() is called, any load() results in a direct server requests.

Tools, gadgets and big user scripts can benefit from the ability to queue things as well and make a server request happen with go() when they want it.

According to Trevor this should not be the default behaviour (ie. after the initial go() call was made any load() should by default directly result in a server request) - but agreed that having a flow like this in a gadget is not bad at all:

mw.loader.stop().
mw.loader.load( ... );
mw.loader.load( ... );
mw.loader.go();


Version: 1.18.x
Severity: enhancement

Details

Reference
bz26291

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:19 PM
bzimport set Reference to bz26291.
bzimport added a subscriber: Unknown Object (MLST).

No longer needed. Use cases (both the one mentioned and ones mentioned elsewhere) are either obsolete, superseded or no longer valid.