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

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Krinkle <[email protected]> 2012-10-05 21:24:14 UTC ---
Marking this bug as invalid, the differences between addOnloadHook
$(document).ready mentioned here are not differences at all. They both work
exactly the same. 

The reason things fail is because code is apparently relying on something it
shouldn't be relying on.

If 2 scripts both schedule in addOnloadHook, and one relies on it that the
other is in the queue first, that's a problem. It is bound to fail one way or
another and now it has.

The simplest solution is to just use $(document).ready everywhere. A more
long-term solution is to make sure not to depend on execution order, javascript
is too good for that :)

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