From b79decf04f495e9c056064a9784b1aa92ba16b75 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Fri, 14 Nov 2025 13:04:04 +0200 Subject: [PATCH] cancel timeout on load --- Frontend/web/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Frontend/web/index.html b/Frontend/web/index.html index 228440e0..7376fc04 100644 --- a/Frontend/web/index.html +++ b/Frontend/web/index.html @@ -371,6 +371,11 @@ return; } scriptLoaded = true; + // Cancel Timeut + if (window.swFallbackTimeout) { + clearTimeout(window.swFallbackTimeout); + console.log('Service worker loaded successfully - fallback timeout cancelled.'); + } {{flutter_js}} {{flutter_build_config}} _flutter.loader.load({ @@ -456,7 +461,7 @@ ); loadMainDartJs(); } - }, 3000); + }, 4000); var finishLoad = new Date(); var loadTime = (finishLoad.getTime() - startLoad.getTime()); console.log("Load Time: " + loadTime);