mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ready: Wait for other ready callbacks before marking app loaded.
This is needed not because the DOM isn’t ready here (we’re in a <script defer>), but because we want to wait an asynchronous tick until after all the other callbacks that waited an asynchronous tick for the DOM to be ready. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e42354c917
commit
32df287818
@@ -1,3 +1,5 @@
|
||||
import $ from "jquery";
|
||||
|
||||
$("#app-loading").addClass("loaded");
|
||||
$(() => {
|
||||
$("#app-loading").addClass("loaded");
|
||||
});
|
||||
|
Reference in New Issue
Block a user