|
@@ -46,24 +46,20 @@ const MiniModel = dynamic(
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-// Lazy load components that were previously eagerly imported
|
|
|
|
|
|
|
+// Lazy load for code splitting, but allow SSR (these don't need browser APIs)
|
|
|
const AnimatedEmoji = dynamic(() => import("@/components/animated-emoji"), {
|
|
const AnimatedEmoji = dynamic(() => import("@/components/animated-emoji"), {
|
|
|
- ssr: false,
|
|
|
|
|
loading: LoadingPlaceholder,
|
|
loading: LoadingPlaceholder,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const CardStack = dynamic(() => import("@/components/card-stack"), {
|
|
const CardStack = dynamic(() => import("@/components/card-stack"), {
|
|
|
- ssr: false,
|
|
|
|
|
loading: LoadingPlaceholder,
|
|
loading: LoadingPlaceholder,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const WebAgent = dynamic(() => import("@/components/webagent"), {
|
|
const WebAgent = dynamic(() => import("@/components/webagent"), {
|
|
|
- ssr: false,
|
|
|
|
|
loading: LoadingPlaceholder,
|
|
loading: LoadingPlaceholder,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const Chatbot = dynamic(() => import("@/components/chatbot"), {
|
|
const Chatbot = dynamic(() => import("@/components/chatbot"), {
|
|
|
- ssr: false,
|
|
|
|
|
loading: LoadingPlaceholder,
|
|
loading: LoadingPlaceholder,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -102,10 +98,6 @@ export default function HomeClient({
|
|
|
router.prefetch("/blog");
|
|
router.prefetch("/blog");
|
|
|
}, [router]);
|
|
}, [router]);
|
|
|
|
|
|
|
|
- if (!width) {
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="flex justify-center flex-col items-center">
|
|
<div className="flex justify-center flex-col items-center">
|
|
|
<Tabs
|
|
<Tabs
|