From c303df5bd6fdde04cce4bdd8e84a554d2c630461 Mon Sep 17 00:00:00 2001
From: aliamanuba <aliamanuba@leafstudiosdot.co.uk>
Date: Thu, 2 May 2024 19:24:35 +0800
Subject: Added Preload for Web

- Bluesky logo in the center when a new visitor or shift+refresh by browser client
---
 src/App.web.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'src/App.web.tsx')

diff --git a/src/App.web.tsx b/src/App.web.tsx
index bc9cd01f1..661cac72c 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -86,9 +86,15 @@ function InnerApp() {
 
 function App() {
   const [isReady, setReady] = useState(false)
-
+  
   React.useEffect(() => {
-    initPersistedState().then(() => setReady(true))
+    initPersistedState().then(() => {
+      setReady(true)
+      
+      const preloadElement = document.getElementById('preload');
+      preloadElement.remove();
+    })
+    
   }, [])
 
   if (!isReady) {
-- 
cgit 1.4.1

