From 725fb5838555e8c8f2fac0b8bf18bc6975472ec6 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Tue, 2 Sep 2025 09:07:36 +0000 Subject: [PATCH] Add preloader and disable service worker to prevent blank screen issues Introduces a visual preloader to the client's index.html and disables the service worker in main.tsx. Additionally, server-side middleware in index.ts is added to set no-cache headers for HTML pages, aiming to resolve the reported blank screen problem. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 890577b1-c154-40a4-a177-a0c6d55320c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/890577b1-c154-40a4-a177-a0c6d55320c3/DyHCx4q --- client/index.html | 66 +++++++++++++++++++++++++++++++++++++++++++-- client/src/main.tsx | 37 ++++++++++++++++--------- server/index.ts | 13 +++++++++ 3 files changed, 102 insertions(+), 14 deletions(-) diff --git a/client/index.html b/client/index.html index 6c168af..0afd9b9 100644 --- a/client/index.html +++ b/client/index.html @@ -54,20 +54,82 @@
- +Loading...
+