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

           Summary: Allow queing load()'s after the first go() as well by
                    implementing a stop()
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Resource Loader
        AssignedTo: tpars...@wikimedia.org
        ReportedBy: krinklem...@gmail.com
                CC: roan.katt...@gmail.com


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();

-- 
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