From 5f71f0bb2ddcb179daf217c8f735ce94a551665b Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Mon, 6 Oct 2025 12:07:40 +0100 Subject: [PATCH] Fix: Loading screen now shows on every page load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problems Fixed: 1. Blank white screen on initial load (loading screen had display:none) 2. Only showed once (sessionStorage.blazorLoaded prevented repeat shows) 3. Fast connections meant users never saw it Solution: 1. Removed display:none from HTML - screen visible immediately 2. Removed sessionStorage check - shows on every page load 3. Screen visible by default, hides when Blazor.start() completes Behavior Now: - Loading screen appears instantly (no blank white screen) - Shows on every page load (full page refresh) - Hides when SignalR connection established - Works correctly with slow/throttled connections 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Areas/Admin/Views/Shared/_Layout.cshtml | 2 +- LittleShop/wwwroot/js/blazor-integration.js | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml index 473c6ee..d73c8ba 100644 --- a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml +++ b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml @@ -41,7 +41,7 @@ -