This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
zulip
mirror of
https://github.com/zulip/zulip.git
Watch
1
Star
0
Fork
You've already forked zulip
0
Code
Issues
Projects
Releases
Wiki
Activity
1d4ed408cb
zulip
/
static
/
js
/
ready.ts
6 lines
81 B
TypeScript
Raw
Normal View
History
Unescape
Escape
js: Use jQuery as a module. Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-11 05:43:45 +01:00
import
$
from
"jquery"
;
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>
2021-03-12 18:19:22 +01:00
$
(
(
)
=
>
{
$
(
"#app-loading"
)
.
addClass
(
"loaded"
)
;
}
)
;