Added Preload for Web
- Bluesky logo in the center when a new visitor or shift+refresh by browser client
This commit is contained in:
parent
cc9727a844
commit
c303df5bd6
2 changed files with 21 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue