Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

landing-page: Clean up ready callbacks.

Anders Kaseorgbc7bec9a95e3
diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js
index 099148b14c4..e98c112d67a 100644
--- a/static/js/portico/landing-page.js
+++ b/static/js/portico/landing-page.js
@@ -201,8 +201,7 @@ const events = function () {
}
};
-// run this callback when the page is determined to have loaded.
-const load = function () {
+$(() => {
// Initiate the bootstrap carousel logic
$(".carousel").carousel({
interval: false,
@@ -238,15 +237,7 @@ const load = function () {
// Set up events / categories / search
events();
-};
-if (document.readyState === "complete") {
- load();
-} else {
- $(load);
-}
-
-$(() => {
if (window.location.pathname === "/team/") {
render_tabs();
}