Skip to content

Load Settings, the command palette and one-off dialogs on first use - #280

Merged
broisnees merged 1 commit into
nightlyfrom
faster-startup
Nov 17, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
faster-startup

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Startup loaded seven components that never show at launch: Settings (75KB, plus the theme builder inside it), the command palette (42KB), AI settings (28KB), and the create-table, import, share and Docker dialogs.

Each now mounts the first time it opens and stays mounted after (so closing keeps its exit animation). They're also fetched once the window is idle, palette and Settings first, so the first open is still instant. The share dialog mounts when a share is requested, since it opens itself from that store.

Measured (vite build):

  • entry: 1,335KB → 1,044KB (−22%)
  • everything loaded at launch (entry + preloads): 2,849KB → 2,488KB (−13%)

The 405KB data grid still loads at launch: a restored session opens a table right away, so deferring it would only move the wait.

Checked in the real app (WebKitGTK): Settings opens, Esc closes it, the palette opens, closes and reopens. svelte-check, design-lint, vite build and the 1799 tests pass.

@broisnees
broisnees merged commit 95ccc7b into nightly Nov 17, 2026
1 check passed
@broisnees
broisnees deleted the faster-startup branch November 17, 2026 07:22
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant