aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-24 08:16:17 -0700
committerAdam Soltys <[email protected]>2026-09-24 08:16:17 -0700
commitcdca3fa061c856f9063aadfabf1c1e713f512123 (patch)
tree79f398e0d9570d7fc9f9947ce8e7de3e4e5024f8 /build.js
parent7fae8198ef36396e4c65e66597d8e6e6f74ab1d1 (diff)
downloadcoinosv3-cdca3fa061c856f9063aadfabf1c1e713f512123.tar.gz
coinosv3-cdca3fa061c856f9063aadfabf1c1e713f512123.zip
Paint cached thread counts and header hat on refresh
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
1 files changed, 3 insertions, 1 deletions
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);