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

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|easy                        |
            Summary|mw.loader's `ready`         |mw.loader "ready" mode is
                   |variable is off when a      |wrong when called from a
                   |browser-userscripts calls   |$.fn.ready handler bound
                   |$(document).ready before    |before mediawiki.js loads
                   |mediawiki.js does           |

--- Comment #2 from Krinkle <[email protected]> 2012-06-23 14:52:15 UTC ---
Did that in I146c1d2245aae71c538ce84daee30b4ec490b874.

This bug is still possible since jQuery's domready callback list isn't the only
callback list for DOMContentLoaded. The native browser event has this list as
well.

Therefor not marking this bug as resolved yet. We can further improve this by
firing ready() from the bottom of the  </body> (but before </html>). This
optimizes overal performance and gets us in right before the native event,
still playing safe.

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