Sveltekit : really long to send the first page and intense CPU computation

15 Views Asked by At

I created a fairly basic Sveltekit project from the official project creation tool (+I installed flowbite-svelte, dexiejs and a few very basic stuff), but when I start the project with npm run dev, it very quickly prints


> [email protected] dev
> vite dev

Port 5173 is in use, trying another one...

  VITE v5.2.6  ready in 821 ms

  ➜  Local:   http://localhost:5174/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

but when I try to load my first page, it will take maybe 30s to load it, and the CPU will compute like crazy. In my previous experience with, e.g., vite + react, everything was starting really quickly so I'm quite surprised. Any idea what's going on here?

0

There are 0 best solutions below