From 902ce9cc0402603812ff28fc4dcbb903d8acac80 Mon Sep 17 00:00:00 2001 From: kaldari Date: Tue, 11 Jun 2013 13:01:23 -0700 Subject: [PATCH] Don't run mw.echo.special.initialize until DOM is ready To fix rare race condition in Safari Change-Id: I2ae556ff6e44f291e761d2937203a3376f4a3177 --- modules/special/ext.echo.special.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/special/ext.echo.special.js b/modules/special/ext.echo.special.js index 7e15fbe8a..06018ef00 100644 --- a/modules/special/ext.echo.special.js +++ b/modules/special/ext.echo.special.js @@ -170,6 +170,6 @@ } }; - mw.echo.special.initialize(); + $( document ).ready( mw.echo.special.initialize ); } )( jQuery, mediaWiki );