Added Preload for Web

- Bluesky logo in the center when a new visitor or shift+refresh by browser client
This commit is contained in:
aliamanuba 2024-05-02 19:24:35 +08:00
parent cc9727a844
commit c303df5bd6
No known key found for this signature in database
GPG key ID: 57F59D54DB001F43
2 changed files with 21 additions and 2 deletions

View file

@ -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) {