From 74e6b91cc2954f0e62dc9e8692f101944771f28c Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Fri, 3 Oct 2025 12:14:48 +0100 Subject: [PATCH] Fix: PWA loading screen now only shows on app startup, not on every navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed splash screen to use sessionStorage to detect first load vs navigation. - Loading screen hidden by default, only shown on initial app load - Uses sessionStorage flag to persist across navigation within same session - Prevents jarring loading screen on every page navigation - Updated hideLoadingScreen to use display:none instead of remove() 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Areas/Admin/Views/Shared/_Layout.cshtml | 19 +++++++++++++++++-- LittleShop/wwwroot/js/pwa.js | 16 ++++++++-------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml index 6d1e760..258bd9b 100644 --- a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml +++ b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml @@ -40,8 +40,8 @@ @await RenderSectionAsync("Head", required: false) - -
+ +