this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Undo lazy component experiment

Doesn't make much difference

+4 -17
+4 -17
src/app.jsx
··· 1 1 import './app.css'; 2 2 3 3 import debounce from 'just-debounce-it'; 4 - import { lazy, Suspense } from 'preact/compat'; 5 4 import { 6 5 useEffect, 7 6 useLayoutEffect, ··· 18 17 import { ICONS } from './components/ICONS'; 19 18 import KeyboardShortcutsHelp from './components/keyboard-shortcuts-help'; 20 19 import Loader from './components/loader'; 21 - // import Modals from './components/modals'; 20 + import Modals from './components/modals'; 22 21 import NotificationService from './components/notification-service'; 23 22 import SearchCommand from './components/search-command'; 24 23 import Shortcuts from './components/shortcuts'; 25 24 import NotFound from './pages/404'; 26 25 import AccountStatuses from './pages/account-statuses'; 27 26 import Bookmarks from './pages/bookmarks'; 28 - // import Catchup from './pages/catchup'; 27 + import Catchup from './pages/catchup'; 29 28 import Favourites from './pages/favourites'; 30 29 import Filters from './pages/filters'; 31 30 import FollowedHashtags from './pages/followed-hashtags'; ··· 56 55 import store from './utils/store'; 57 56 import { getCurrentAccount } from './utils/store-utils'; 58 57 import './utils/toast-alert'; 59 - 60 - const Catchup = lazy(() => import('./pages/catchup')); 61 - const Modals = lazy(() => import('./components/modals')); 62 58 63 59 window.__STATES__ = states; 64 60 window.__STATES_STATS__ = () => { ··· 387 383 )} 388 384 {isLoggedIn && <ComposeButton />} 389 385 {isLoggedIn && <Shortcuts />} 390 - <Suspense> 391 - <Modals /> 392 - </Suspense> 386 + <Modals /> 393 387 {isLoggedIn && <NotificationService />} 394 388 <BackgroundService isLoggedIn={isLoggedIn} /> 395 389 {uiState !== 'loading' && <SearchCommand onClose={focusDeck} />} ··· 466 460 </Route> 467 461 <Route path="/fh" element={<FollowedHashtags />} /> 468 462 <Route path="/ft" element={<Filters />} /> 469 - <Route 470 - path="/catchup" 471 - element={ 472 - <Suspense> 473 - <Catchup /> 474 - </Suspense> 475 - } 476 - /> 463 + <Route path="/catchup" element={<Catchup />} /> 477 464 </> 478 465 )} 479 466 <Route path="/:instance?/t/:hashtag" element={<Hashtag />} />