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

--- Comment #4 from Liangent <[email protected]> 2011-11-24 10:18:14 UTC ---
(In reply to comment #3)
> To fix the problem you had on zhwiki, I suggest putting ULS in a hidden gadget
> (are hidden gadgets supported on the live site? I forgeT) so you can use
> mw.loader.using( 'ext.gadgets.uls', ... ) as appropriate.

That's exactly what I did at
http://zh.wikipedia.org/wiki/MediaWiki:Gadget-site-lib.js . I set the
description text to a blank string and hid the checkbox with site CSS. I cannot
find an option to set a gadget as hidden, even in trunk.

> Re the actual bug, maybe we should disallow calling load() on site and user
> somehow. They're weird modules because they're loaded raw, which means the
> usual guards against double-loading fail; however, they're also loaded on 
> every
> page, so calling load() on them is always unnecessary. So there the good news
> is your load() call would stop working (which fixes the double-loading bug),
> and the bad news is your load() call would stop working (which breaks your
> hack).

Why do we have to load them raw? or can we wrap the whole content with an
if(){} of loading state check.

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

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to