From 7c6567a81552701feadc7a716b132d7d6b8adfbe Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 14 Apr 2026 15:22:31 +0200 Subject: [PATCH] perf(web): re-apply (app) layout idle-defer + lazy modals after BYOK merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The BYOK vault commit (db8c2574d) reverted the layout to its pre-perf shape while integrating initByok(). Restore the perf optimizations from b196e7782 and slot initByok() into the Phase A-idle block alongside the other side-effect initializers. Verified bundle impact (perf vs pre-perf parent): - (app)/+layout chunk: 42 KB → 26 KB gzip (-38%) - 7 lazy chunks split out (modals on demand, toasts after idle) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../apps/web/src/routes/(app)/+layout.svelte | 213 +++++++++++++----- 1 file changed, 152 insertions(+), 61 deletions(-) diff --git a/apps/mana/apps/web/src/routes/(app)/+layout.svelte b/apps/mana/apps/web/src/routes/(app)/+layout.svelte index bc64e631c..75ea0efc0 100644 --- a/apps/mana/apps/web/src/routes/(app)/+layout.svelte +++ b/apps/mana/apps/web/src/routes/(app)/+layout.svelte @@ -1,7 +1,7 @@