File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,14 @@ export const getStaticProps = (async ({ locale }) => {
219
219
}
220
220
} ) satisfies GetStaticProps < Props >
221
221
222
+ // Lazy-load these components on initial load
223
+ const Codeblock = dynamic ( ( ) => import ( "@/components/Codeblock" ) , {
224
+ ssr : false ,
225
+ } )
226
+ const CodeModal = dynamic ( ( ) => import ( "@/components/CodeModal" ) , {
227
+ ssr : false ,
228
+ } )
229
+
222
230
const HomePage = ( {
223
231
communityEvents,
224
232
metricResults,
@@ -331,14 +339,6 @@ const HomePage = ({
331
339
332
340
const cardBoxShadow = useToken ( "colors" , "cardBoxShadow" )
333
341
334
- // Lazy-load these components on initial load
335
- const Codeblock = dynamic ( ( ) => import ( "@/components/Codeblock" ) , {
336
- ssr : false ,
337
- } )
338
- const CodeModal = dynamic ( ( ) => import ( "@/components/CodeModal" ) , {
339
- ssr : false ,
340
- } )
341
-
342
342
return (
343
343
< Flex
344
344
as = { MainArticle }
You can’t perform that action at this time.
0 commit comments