Performance: Portrait-Bilder exakt für Anzeigegröße optimiert
- Portrait-Bilder in exakten Größen: 224px, 288px, 448px, 576px - Mobile lädt jetzt ~5KB statt 30KB - Supabase-Check auf 5s verzögert (außerhalb kritischer Pfad) - Preload für exakte Portrait-Größen 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user