mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Implement complete offline functionality by hosting Bootstrap CSS/JS and icons locally, eliminating dependency on external CDNs. This ensures the application works reliably in internet-free environments, perfect for mesh networks in remote or emergency scenarios. Changes: - Download and host Bootstrap 5.3.2 CSS/JS locally (~307 KB total) - Download and host Bootstrap Icons 1.11.2 CSS and fonts (~300 KB) - Update base.html to use local library paths instead of CDN URLs - Enhance Service Worker with hybrid caching strategy: - Cache-first for vendor libraries (static, unchanging) - Network-first for app code (dynamic, needs updates) - Bump Service Worker cache version to v2 - Add vendor libraries to pre-cache list for instant offline availability - Update README.md with offline support documentation - Update project structure documentation Benefits: - Works without internet connection (no CDN dependency) - Faster initial page load (no external requests) - Reliable operation during internet outages - Perfect for air-gapped and remote mesh network deployments File sizes: - Bootstrap CSS: ~227 KB - Bootstrap JS: ~80 KB - Bootstrap Icons CSS: ~98 KB - Bootstrap Icons Fonts: ~300 KB (woff2 + woff) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>