fix: enable SSR for below-fold sections (About, Projects, Contact, Footer)
ssr:false caused sections to only render client-side, making them invisible if any JS error occurred. Keep dynamic() for code-splitting but allow server-side rendering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -16,11 +16,11 @@ import type {
|
||||
import enMessages from '@/messages/en.json';
|
||||
import deMessages from '@/messages/de.json';
|
||||
|
||||
// Lazy-load below-fold sections to reduce initial JS payload
|
||||
const About = dynamic(() => import('./About'), { ssr: false });
|
||||
const Projects = dynamic(() => import('./Projects'), { ssr: false });
|
||||
const Contact = dynamic(() => import('./Contact'), { ssr: false });
|
||||
const Footer = dynamic(() => import('./Footer'), { ssr: false });
|
||||
// Lazy-load below-fold sections (code-split but still SSR)
|
||||
const About = dynamic(() => import('./About'));
|
||||
const Projects = dynamic(() => import('./Projects'));
|
||||
const Contact = dynamic(() => import('./Contact'));
|
||||
const Footer = dynamic(() => import('./Footer'));
|
||||
|
||||
const messageMap = { en: enMessages, de: deMessages };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user