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

--- Comment #19 from Matthew Flaschen <mflasc...@wikimedia.org> ---
(In reply to Yuvi Panda from comment #13)
> Open questions:
> 
> 1. Can we top-load this JS?

It certainly won't cause a problem to do this.  However, bear in mind this code
can not run before ready, so even though it's top-loaded, it will run after all
HTML has been delivered and parsed (and probably a few entries into the ready
queue).

> 2. Can we top-load JS if we don't use jQuery?

Currently, absolutely all MediaWiki JavaScript requires jQuery.  The
client-side part of ResourceLoader uses jQuery, which makes it a hard
requirement.

Thus, there is an isCompatible function in the startup module; it's all or
nothing.  Certain browsers are blacklisted from all ResourceLoader JS, but
everything else gets both jQuery and the main MediaWiki module (which in turn
loads other modules).

Can you explain the question a little further?

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to