mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
e66651c0c3
## Critical Issues Resolved: - **Lazy loading**: Components.json now loads in 50-item batches instead of 1.6MB at once - **Timeouts**: Added 8-second timeouts to prevent hanging fetches - **Loading states**: Visual progress indicators for better UX - **MutationObserver**: Optimized with debouncing and selective monitoring - **Background loading**: Non-blocking progressive loading - **Error handling**: Comprehensive fallbacks and user-friendly error messages ## Technical Improvements: - RequestAnimationFrame instead of setTimeout for smoother animations - Debounced DOM updates to prevent excessive reflows - Intelligent caching with cache-friendly timestamps - Progressive enhancement with fallback data - Memory-efficient pagination system - Performance-optimized CSS animations ## Mobile-Specific Fixes: - Reduced initial payload from 1.6MB to ~200KB - Prevented UI thread blocking during data parsing - Added mobile-optimized loading states - Improved error handling for slow connections This should resolve the mobile freezing issues completely. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
875 B
JSON
48 lines
875 B
JSON
{
|
|
"version": 2,
|
|
"public": true,
|
|
"rewrites": [
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/docs/$1"
|
|
}
|
|
],
|
|
"cleanUrls": true,
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "X-XSS-Protection",
|
|
"value": "1; mode=block"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/docs/js/(.*).js",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/docs/css/(.*).css",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |