mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: unblock page rendering when Telegram CDN is unavailable
- Google Fonts: non-render-blocking via media="print" onload trick - telegram-web-app.js: load only inside Telegram environment - Telegram SDK init: skip entirely outside Telegram - Script load timeout: 8000ms → 2000ms for faster deep link fallback - Email login form: expanded by default (80% of registrations)
This commit is contained in:
@@ -14,7 +14,7 @@ interface TelegramLoginButtonProps {
|
||||
referralCode?: string;
|
||||
}
|
||||
|
||||
const SCRIPT_LOAD_TIMEOUT_MS = 8000;
|
||||
const SCRIPT_LOAD_TIMEOUT_MS = 2000;
|
||||
const DEEPLINK_POLL_INTERVAL_MS = 2500;
|
||||
|
||||
export default function TelegramLoginButton({ referralCode }: TelegramLoginButtonProps) {
|
||||
|
||||
Reference in New Issue
Block a user