about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-09-19 17:57:15 -0500
committerGitHub <noreply@github.com>2024-09-19 17:57:15 -0500
commit22410a3cee459761a9eb2d1a52de99557a424797 (patch)
tree2ce6a0341707abc710dc76459e0e946a1153be2c /src/App.web.tsx
parentc8184e823dc79d1ff1f71571bae5cb7611f61d5d (diff)
downloadvoidsky-22410a3cee459761a9eb2d1a52de99557a424797.tar.zst
[Neue] Parallel font loading on web (#5411)
* Parallel font loading

(cherry picked from commit 10e2b05b575bbbf8b0ca5b4a336817cd902d712b)

* Handle failures

* Rely on font-face and preload tags for font loading (#5431)

* Cache fonts for a year
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 075ce964a..fa5f1de93 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -46,7 +46,7 @@ import {Provider as VideoVolumeProvider} from '#/view/com/util/post-embeds/Video
 import * as Toast from '#/view/com/util/Toast'
 import {ToastContainer} from '#/view/com/util/Toast.web'
 import {Shell} from '#/view/shell/index'
-import {ThemeProvider as Alf, useFonts} from '#/alf'
+import {ThemeProvider as Alf} from '#/alf'
 import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
 import {NuxDialogs} from '#/components/dialogs/nuxs'
 import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry'
@@ -146,13 +146,12 @@ function InnerApp() {
 
 function App() {
   const [isReady, setReady] = useState(false)
-  const [loaded, error] = useFonts()
 
   React.useEffect(() => {
     initPersistedState().then(() => setReady(true))
   }, [])
 
-  if (!isReady || (!loaded && !error)) {
+  if (!isReady) {
     return null
   }