From 5c92d95143b07aaee6f04a41db6e0a3e9a55db06 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 16 Mar 2023 09:17:36 -0400 Subject: [PATCH] Prevent dashboard from loading at browser launch until ready Related discussion: - https://github.com/uBlockOrigin/uAssets/discussions/16939 Various feedback of people trying to interact with uBO's dashboard at browser launch, before uBO's main process is fully initialized, causing confusion, and potential loss of data. --- src/css/dashboard.css | 3 +++ src/dashboard.html | 3 ++- src/js/dashboard.js | 21 +++++++++++++++++++++ src/js/messaging.js | 4 ++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/css/dashboard.css b/src/css/dashboard.css index 65eb53cb6..ba02d974d 100644 --- a/src/css/dashboard.css +++ b/src/css/dashboard.css @@ -7,6 +7,9 @@ html, body { position: relative; width: 100vw; } +body.notReady { + display: none; + } #dashboard-nav { border: 0; border-bottom: 1px solid var(--border-1); diff --git a/src/dashboard.html b/src/dashboard.html index 71bf041b4..859de589c 100644 --- a/src/dashboard.html +++ b/src/dashboard.html @@ -10,7 +10,8 @@ - + +