fix: load telegram-web-app.js asynchronously to prevent page blocking

When telegram.org is unreachable, the synchronous script tag blocks
DOM parsing for ~51 seconds (TCP timeout), preventing the React app
from rendering and the deep link auth fallback from activating.
This commit is contained in:
Fringg
2026-03-18 16:41:17 +03:00
parent 9d2490f635
commit c5f621b399

View File

@@ -19,7 +19,7 @@
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<script src="https://telegram.org/js/telegram-web-app.js" async></script>
<style>
body {
background-color: #0a0f1a;