perf: optimize frontend bundle - reduce main chunk 77%

- vite.config: separate lucide-react icons + analytics into own chunks
- App.tsx: defer SiteAssistant loading via requestIdleCallback
- HeroUploadZone: lazy-load ToolSelectorModal + dynamic import fileRouting
- HeroUploadZone: add aria-label on dropzone input (accessibility)
- SocialProofStrip: defer API call until component is in viewport
- index.html: remove dev-only modulepreload hint

Main bundle: 266KB -> 61KB (-77%)
This commit is contained in:
Your Name
2026-04-04 22:36:45 +02:00
parent 7e9edc2992
commit 7928e688d5
5 changed files with 63 additions and 18 deletions

View File

@@ -65,7 +65,6 @@
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Tajawal:wght@400;700&display=swap" />
</noscript>
<link rel="modulepreload" href="/src/main.tsx" />
<title>Dociva — Free Online File Tools</title>
</head>