Skip to content

Commit

Permalink
add lazy load import to improve perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie85270 committed Jan 22, 2021
1 parent 51a6938 commit 70ea61d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { FC } from "react";
import HomeLayout from "../components/layout/HomeLayout";
import Link from "next/link";
import HomeComps from "../components/site/home/HomeComps";
import dynamic from "next/dynamic";
const HomeComps = dynamic(() => import("../components/site/home/HomeComps"));

export const IndexPage: FC = () => {
return (
Expand Down

0 comments on commit 70ea61d

Please sign in to comment.