From 8410c41b010ccc716b85a2816977033c59d0a06b Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Fri, 8 May 2026 00:17:32 +0300 Subject: [PATCH] perf: show Electron splash window sooner Shows the Electron window earlier during startup Uses the existing splash SVG while the local runtime starts --- packages/electron/main.mjs | 82 +++++++++++++++++++++++++++++++++----- 1 file changed, 73 insertions(+), 9 deletions(-) diff --git a/packages/electron/main.mjs b/packages/electron/main.mjs index 9dab1bf4..4f6d5166 100644 --- a/packages/electron/main.mjs +++ b/packages/electron/main.mjs @@ -871,28 +871,86 @@ const buildStartupSplashHtml = () => { -
OpenChamber
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
`; }; @@ -2394,6 +2452,12 @@ app.whenReady().then(async () => { Menu.setApplicationMenu(buildMacMenu()); } + state.mainWindow = createBrowserWindow({ + label: 'main', + restoreGeometry: true, + url: null, + }); + const initial = extractInitialDeepLinks(); if (initial.length > 0) handleDeepLinks(initial);