File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ import { lazy } from 'preact-iso' ;
2+
13import Jumbotron from './jumbotron' ;
2- import GithubRepos from './github-repos' ;
3- import TodoList from './todo-list' ;
44import Logo from './logo' ;
55import Toc from './table-of-contents' ;
6- import BlogOverview from './blog-overview' ;
76import Sponsors from './sponsors' ;
8- import WeAreUsing from './we-are-using' ;
9- import Branding from './branding' ;
107import TabGroup from './tab-group' ;
118
9+ // Hoist the CSS to avoid FOUC
10+ import './branding/style.module.css' ;
11+ import './blog-overview/style.module.css' ;
12+ import './we-are-using/style.module.css' ;
13+
14+ const Branding = lazy ( ( ) => import ( './branding' ) ) ;
15+ const BlogOverview = lazy ( ( ) => import ( './blog-overview' ) ) ;
16+ const GithubRepos = lazy ( ( ) => import ( './github-repos' ) ) ;
17+ const TodoList = lazy ( ( ) => import ( './todo-list' ) ) ;
18+ const WeAreUsing = lazy ( ( ) => import ( './we-are-using' ) ) ;
19+
1220export default {
1321 Toc,
1422 BlogOverview,
You can’t perform that action at this time.
0 commit comments