Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
apps: Prevent download page flicker during initialization Hide the apps download hero content until all dynamic state is computed, then reveal it once update_page() completes. This avoids briefly showing incorrect or partially-initialized download links during page load
Vijay Hiremath88c326c27f7c
diff --git a/templates/corporate/apps.html b/templates/corporate/apps.htmlindex edf2bc15b2f..397d06e6e3c 100644--- a/templates/corporate/apps.html+++ b/templates/corporate/apps.html@@ -12,7 +12,7 @@<div class="hero"><div id="waves"></div><div class="inner-content">- <div class="info">+ <div class="info" hidden><div class="flex"><div class="cta"><h1>Zulip for <span class="platform"></span></h1>diff --git a/web/src/portico/legacy_landing_page.ts b/web/src/portico/legacy_landing_page.tsindex 36d0b40c710..71a458d95ba 100644--- a/web/src/portico/legacy_landing_page.ts+++ b/web/src/portico/legacy_landing_page.ts@@ -165,7 +165,9 @@ const apps_events = function (): void {$download_from_google_play_store.toggle(version === "android");$download_from_apple_app_store.toggle(version === "ios");$download_from_microsoft_store.toggle(version === "windows");- $download_mac_intel.toggle(version === "mac");++ // Show the info section now that all content is populated (prevents flicker)+ $(".portico-landing.apps .hero .info").removeAttr("hidden");};// init