From c949453c9ef54a450e26704447fdc6b51362213b Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sat, 30 May 2026 08:51:15 +0200 Subject: [PATCH] im already tracer --- public/s/js/sidebar-activity.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/public/s/js/sidebar-activity.js b/public/s/js/sidebar-activity.js index cc921e2..d31f57a 100644 --- a/public/s/js/sidebar-activity.js +++ b/public/s/js/sidebar-activity.js @@ -755,10 +755,16 @@ const init = async () => { // Run emoji loading and activity fetching in parallel — avatars appear // immediately without waiting for the emoji API to respond first. - Promise.all([ - loadEmojis(), - loadActivity() - ]); + // After both settle, if emojis finished after the initial render, re-render + // from cache so custom emoji images show on first page load. + const emojiPromise = loadEmojis(); + const activityPromise = loadActivity(); + await activityPromise; + await emojiPromise; + // If emojis were not yet available when activity first rendered, re-render now. + if (Object.keys(customEmojis).length > 0 && window._sidebarActivityCache.length > 0) { + renderFromCache(); + } }; // Listen for live activity from f0ckm.js