diff --git a/src/components/common/UiLoader.tsx b/src/components/common/UiLoader.tsx index 8bd2fe08..f42cd80f 100644 --- a/src/components/common/UiLoader.tsx +++ b/src/components/common/UiLoader.tsx @@ -92,9 +92,17 @@ const UiLoader: FC = ({ useEffect(() => { let timeout: number | undefined; + const safePreload = async () => { + try { + await preloadTasks[page](); + } catch (err) { + // Do nothing + } + }; + Promise.race([ pause(MAX_PRELOAD_DELAY), - preloadTasks[page](), + safePreload(), ]).then(() => { markReady(); setIsUiReady({ uiReadyState: 1 });