Skip to content

Poor performance on tw4 branch vs tw3 #2661

@alexandersmpx

Description

@alexandersmpx

Describe the bug

Hi, we noticed a big performance hit on tw4 branch vs tw3 branch. Tw3 branch was very responsive but latest shadcn-svelte has a lot of lag spikes on data tables, select components.

Happens in Chrome but not Firefox.

Here is a video of the issue (notice the spikes in performance tab)

https://cdn.discordapp.com/attachments/1494717625312477386/1494717626771964114/2026-04-17_11-10-39.mp4?ex=69e39fc4&is=69e24e44&hm=7231e833eee3b64263d14f70bed4238dc24c24a672a35a584c0d9039c9c00b82&

Reproduction

Open https://www.shadcn-svelte.com/docs/components/data-table in Chrome and click on Columns dropdown

Logs

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
    Memory: 14.15 GB / 31.94 GB
  Binaries:
    Node: 22.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 11.12.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.8.0 - C:\Users\User\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Chrome: 147.0.7727.57
    Edge: Chromium (140.0.3485.54)
    Firefox: 145.0.2 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.19041.5794
  npmPackages:
    @lucide/svelte: ^1.8.0 => 1.8.0
    @sveltejs/kit: ^2.0.0 => 2.55.0
    bits-ui: ^2.17.3 => 2.17.3
    formsnap: ^2.0.1 => 2.0.1
    mode-watcher: ^1.1.0 => 1.1.0
    shadcn-svelte: ^1.2.7 => 1.2.7
    svelte: ^5.0.0 => 5.55.0
    svelte-radix: ^2.0.1 => 2.0.2
    svelte-sonner: ^1.1.0 => 1.1.0
    sveltekit-superforms: ^2.30.1 => 2.30.1
    tailwindcss: ^4.2.2 => 4.2.2
    vaul-svelte: ^1.0.0-next.7 => 1.0.0-next.7

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterThe issue or PR requires additional information or action from the submitter.needs reproductionA reproduction is required to support the issue.triageThe issue is pending triage by a maintainer.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions