From 63ea08691678a0c96fda94c13bb68419e9eb4d06 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Sun, 25 Oct 2026 20:17:15 -0500 Subject: [PATCH] prevent theme flashes during startup The initial HTML renders before the theme provider mounts, which waits for the features request. Dark mode can show a white page while the styles, JavaScript, and API response load. Apply the saved or system theme in a synchronous head script and paint the matching page background before external assets load. Fall back to the system preference when browser storage is unavailable, and let the existing theme provider continue managing subsequent changes. --- public/index.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/public/index.html b/public/index.html index 07fa20d5..161e7211 100644 --- a/public/index.html +++ b/public/index.html @@ -2,6 +2,37 @@ + + +