Website loading is terribly slow #20054
Unanswered
KoljaFrahm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use
yarn vite
, the console is usually ready in around 3s.When I then open localhost:3000 in the web browser, it takes around 1 min to actually load the site (even in a private window).
If I use
vite preview
everything is fast.My app is quite big, but this is too long, isn't it? What can I do to improve the speed?
The request that takes the longest is
fetch("http://localhost:3000/node_modules/.vite/deps/recharts.js?v=307a82bc")
,then there are two more requests that take less than one second, the rest takes (mostly much) less than 60ms. There are 6049 request in total.
Dependencies I have:
I already looked at https://vite.dev/guide/performance and tried to include the suggestions, but it doesn't help much.
I included recharts and other bigger plugins in optimizeDeps, this doesn't make a big difference.
Would someone be so kind to point me to how I can speed up the loading up the website?
Beta Was this translation helpful? Give feedback.
All reactions