https://bugzilla.wikimedia.org/show_bug.cgi?id=69924
--- Comment #6 from Michael M. <[email protected]> --- Why do user scripts have to be enveloped in that if-clause anyway? 1. In most browsers the global mw will be defined before the user script is executed, so there is no need to test for it. 2. If for some reason the loading order is wrong, it would be a bug, that should be reported, and for this should be visible. Testing for the existence of mw will silently hide such a bug. 3. The only case in which mw will not be defined are unsupported browsers (like IE6) which are blacklisted in the startup function. But if a user of such a browser has a user script that doesn't depend on mw and jQuery, why shouldn't it be executed? So there is actually no benefit of wrapping user scripts in that if-clause, but several reasons not to do so. -- 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
