diff --git a/index.html b/index.html index 44bed95..d1d2eb5 100644 --- a/index.html +++ b/index.html @@ -125,10 +125,9 @@ - - + + - diff --git a/public/portrait-224.jpg b/public/portrait-224.jpg new file mode 100644 index 0000000..cfa18ba Binary files /dev/null and b/public/portrait-224.jpg differ diff --git a/public/portrait-224.webp b/public/portrait-224.webp new file mode 100644 index 0000000..d46604a Binary files /dev/null and b/public/portrait-224.webp differ diff --git a/public/portrait-288.jpg b/public/portrait-288.jpg new file mode 100644 index 0000000..bf222b4 Binary files /dev/null and b/public/portrait-288.jpg differ diff --git a/public/portrait-288.webp b/public/portrait-288.webp new file mode 100644 index 0000000..d5c1be4 Binary files /dev/null and b/public/portrait-288.webp differ diff --git a/public/portrait-448.webp b/public/portrait-448.webp new file mode 100644 index 0000000..3b605ba Binary files /dev/null and b/public/portrait-448.webp differ diff --git a/public/portrait-576.webp b/public/portrait-576.webp new file mode 100644 index 0000000..2030a3d Binary files /dev/null and b/public/portrait-576.webp differ diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 546ce6f..cf1f077 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -87,12 +87,9 @@ const Layout = ({ children }: LayoutProps) => { } }; - // Verzögere Admin-Check bis nach dem Initial Paint - if ('requestIdleCallback' in window) { - requestIdleCallback(() => checkAdmin()); - } else { - setTimeout(checkAdmin, 2000); - } + // Verzögere Admin-Check deutlich (5s) um kritischen Pfad nicht zu blockieren + const timeoutId = setTimeout(checkAdmin, 5000); + return () => clearTimeout(timeoutId); }, []); const navigationLinks = [ diff --git a/src/pages/home/components/Hero.tsx b/src/pages/home/components/Hero.tsx index 275112d..47cf399 100644 --- a/src/pages/home/components/Hero.tsx +++ b/src/pages/home/components/Hero.tsx @@ -63,24 +63,24 @@ const Hero = () => { {/* Main Content */}
- {/* Profile Image - keine Animation beim Initial Load für bessere LCP */} + {/* Profile Image - optimiert für exakte Anzeigegröße */}