From 2c5da39dc5beb38101ca335b5fea8b0cc4fdbe48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Sat, 13 Jun 2026 17:53:09 +0200 Subject: [PATCH] perf(front): load Front chat during browser idle time (#21533) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Context The Front support chat bundle (`chat-assets.frontapp.com/v1/chat.bundle.js`, ~2.3s in a profiling trace) was being injected only `500ms` after auth + client-config + workspace-member resolved (`useInstantiateSupportChat.ts`). Because the effect's gating conditions are themselves network-bound, that `500ms` still lands the fetch + execute **inside the critical boot window** (metadata load + first render), where the bundle competes for bandwidth and main-thread time. Two pre-existing issues: - The `500ms` delay was too short to clear the critical window. - The injected `