From aa2ad9a6cbf22c57f1a5bc21c1e795215a3f1352 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Mon, 13 Jul 2026 07:45:55 -0400 Subject: [PATCH] v0.0.23 - Fix theme toggle lag: use async XHR instead of sync to avoid 5-second UI freeze --- VERSION | 2 +- src/nostr_bridge.c | 8 ++++---- src/version.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 818944f..df5db66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.22 +0.0.23 diff --git a/src/nostr_bridge.c b/src/nostr_bridge.c index 99ba3a5..242e284 100644 --- a/src/nostr_bridge.c +++ b/src/nostr_bridge.c @@ -507,9 +507,9 @@ static char *sovereign_page_head(const char *title) { /* Build the theme-toggle button + closing . * Returns a newly-allocated string (g_free). */ static char *sovereign_page_foot(void) { - /* The theme toggle uses JavaScript to immediately flip the CSS class - * on for an instant visual response, then saves the setting - * via XHR without a page reload. */ + /* The theme toggle immediately flips the CSS class on for an + * instant visual response, then fires an async XHR to save the setting + * in the background. No page reload, no UI blocking. */ return g_strdup_printf( "%s\n" diff --git a/src/version.h b/src/version.h index 737c9b3..6ca1be2 100644 --- a/src/version.h +++ b/src/version.h @@ -11,9 +11,9 @@ #ifndef SOVEREIGN_BROWSER_VERSION_H #define SOVEREIGN_BROWSER_VERSION_H -#define SB_VERSION "v0.0.22" +#define SB_VERSION "v0.0.23" #define SB_VERSION_MAJOR 0 #define SB_VERSION_MINOR 0 -#define SB_VERSION_PATCH 22 +#define SB_VERSION_PATCH 23 #endif /* SOVEREIGN_BROWSER_VERSION_H */