coolify/resources/views/layouts
Andras Bacsai 630fac4318 fix: eliminate dark mode white screen flicker on page transitions
- Add minimal blocking script immediately after <html> tag to apply dark class before any rendering
- Move theme detection from body to run before <head> parsing
- Add color-scheme meta tag for browser-level dark mode support
- Update theme-color meta tag dynamically based on theme
- Improve queryTheme() logic in settings dropdown for consistent behavior
- Remove duplicate theme detection code from body script

This eliminates the white "flashbang" effect that occurs during Livewire page
navigation, especially noticeable for users with high latency connections.

The solution uses an ultra-minimal (~100 bytes) script that runs before <head>
parsing, preventing FOUC while maintaining optimal performance (~0.1ms impact).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 20:46:58 +02:00
..
app.blade.php Changes auto-committed by Conductor 2025-10-20 10:42:21 +02:00
base.blade.php fix: eliminate dark mode white screen flicker on page transitions 2025-10-23 20:46:58 +02:00
boarding.blade.php feat(onboarding): redesign user onboarding flow with modern UI/UX 2025-10-12 17:59:37 +02:00
simple.blade.php Refactor code and comment out unused imports and code blocks 2024-04-03 14:32:23 +02:00