diff --git a/static/js/bundles/app.js b/static/js/bundles/app.js index c01939824f..0a57707631 100644 --- a/static/js/bundles/app.js +++ b/static/js/bundles/app.js @@ -231,3 +231,6 @@ import "../../styles/hotspots.scss"; import "../../styles/night_mode.scss"; import "../../styles/user_status.scss"; import "../../styles/widgets.scss"; + +// This should be last. +import "../ready.js"; diff --git a/static/js/ready.js b/static/js/ready.js new file mode 100644 index 0000000000..17f30f3b03 --- /dev/null +++ b/static/js/ready.js @@ -0,0 +1 @@ +$("#app-loading").addClass("loaded"); diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss index ef790c46b4..744b7f90af 100644 --- a/static/styles/zulip.scss +++ b/static/styles/zulip.scss @@ -8,7 +8,7 @@ html { touch-action: manipulation; } -#css-loading { +#app-loading.loaded { display: none !important; /* We are now loaded, by definition. */ } diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html index 3ee613d84f..0fbc41ef69 100644 --- a/templates/zerver/app/index.html +++ b/templates/zerver/app/index.html @@ -16,7 +16,7 @@ @@ -33,7 +34,7 @@
-
+

{{ _('Loading...') }}

{% trans %}If this message does not go away, please wait a couple seconds and reload the page.{% endtrans %}