From 5e52a1ec57443f6f0758b04586f43578355b8742 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 24 Oct 2025 16:41:35 +0300 Subject: [PATCH] [Minor] Fix icon rendering race condition in tab initialization Initialize FontAwesome icon replacement before activating stickyTabs to ensure FooTable icons are properly converted on initial tab load. Previously, stickyTabs would activate #status_nav before the FontAwesome MutationObserver was set up, causing icons to render as unstyled fooicons. --- interface/js/app/rspamd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index ca3319f285..ae19aec003 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -253,11 +253,11 @@ define(["jquery", "app/common", "stickytabs", "visibility", $("#preloader").addClass("d-none"); $("#navBar, #mainUI").removeClass("d-none"); - $(".nav-tabs-sticky").stickyTabs({initialTab: "#status_nav"}); - // Initialize FontAwesome icon replacement for FooTable + // Initialize FontAwesome icon replacement for FooTable before activating tabs require(["app/footable-fontawesome"], (FootableFA) => { FootableFA.init(); + $(".nav-tabs-sticky").stickyTabs({initialTab: "#status_nav"}); }); }, errorMessage: "Cannot get server status", -- 2.47.3