File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import type { CommunityEventsReturnType } from "@/lib/interfaces"
25
25
import ActionCard from "@/components/ActionCard"
26
26
import ButtonLink from "@/components/Buttons/ButtonLink"
27
27
import CalloutBanner from "@/components/CalloutBanner"
28
- import Codeblock from "@/components/Codeblock"
29
28
import CommunityEvents from "@/components/CommunityEvents"
30
29
import HomeHero from "@/components/Hero/HomeHero"
31
30
import { Image } from "@/components/Image"
@@ -332,7 +331,10 @@ const HomePage = ({
332
331
333
332
const cardBoxShadow = useToken ( "colors" , "cardBoxShadow" )
334
333
335
- // Lazy-load CodeModal component
334
+ // Lazy-load these components on initial load
335
+ const Codeblock = dynamic ( ( ) => import ( "@/components/Codeblock" ) , {
336
+ ssr : false ,
337
+ } )
336
338
const CodeModal = dynamic ( ( ) => import ( "@/components/CodeModal" ) , {
337
339
ssr : false ,
338
340
} )
You can’t perform that action at this time.
0 commit comments