From cdca3fa061c856f9063aadfabf1c1e713f512123 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 24 Sep 2026 08:16:17 -0700 Subject: Paint cached thread counts and header hat on refresh --- build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build.js') diff --git a/build.js b/build.js index dcb7870..98ba69c 100644 --- a/build.js +++ b/build.js @@ -262,7 +262,9 @@ const ALL_FEATURES = { gifts: 'giftsFeature', ark: 'arkFeature', nostrlogin: 'no // NOT deferrable: ark (balance on the home screen), messages (deep-linked // profiles + the boot shell), gifts is deferrable because app.js awaits the // deferred load before the bootUrl check when the path looks like a gift. -const DEFERRED_FEATURES = ['gifts', 'nwc', 'hats', 'pos']; +// Hats decorate the header avatar on the first frame. Loading their art in a +// later chunk makes the header change after the rest of the page has painted. +const DEFERRED_FEATURES = ['gifts', 'nwc', 'pos']; export function enabledFeatures(spec = process.env.HAL_FEATURES) { if (spec == null) return Object.keys(ALL_FEATURES); -- cgit v1.2.3