mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user