diff options
author | aliamanuba <aliamanuba@leafstudiosdot.co.uk> | 2024-05-02 19:24:35 +0800 |
---|---|---|
committer | aliamanuba <aliamanuba@leafstudiosdot.co.uk> | 2024-05-02 19:24:35 +0800 |
commit | c303df5bd6fdde04cce4bdd8e84a554d2c630461 (patch) | |
tree | 05ba71a7dfbbea6cdadbb7d31bdb8b54c6f0aa4e /src | |
parent | cc9727a844979646b17a806616cbfb27b9fbfab8 (diff) | |
download | voidsky-c303df5bd6fdde04cce4bdd8e84a554d2c630461.tar.zst |
Added Preload for Web
- Bluesky logo in the center when a new visitor or shift+refresh by browser client
Diffstat (limited to 'src')
-rw-r--r-- | src/App.web.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
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) { |