NextJS takes up to 5-6 seconds to update content when changing CSS styles
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
Hi I wonder if I'm the only one experiencing this but I've read also a lot on the web that NextJS can be kinda slow when updating content on local development?
This should go way faster in my opinion?
Runnin on a maxed out Apple M1 Max, 32 GB Ram and so on.
I'm running this package.json:
Without the turbo flag I've to mention, because when running with it I get strange error messages which disappear when I remove the turbopack flag.
It's almost a stock project without many dependencies so I wonder is there a way to speed up development?
A more beefy machine isn't the problem I think?
Is there a way to test how fast it is and how fast it should be? Normally for changing only CSS it should take 1-2 seconds in my opinion, am I right?
I know sometimes it restarts the whole application, and in my case I'm using a global.css file but anyway this should go faster I guess.
Any hints what I could do to speed it up more?
Kind regards
This should go way faster in my opinion?
Runnin on a maxed out Apple M1 Max, 32 GB Ram and so on.
I'm running this package.json:
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
Without the turbo flag I've to mention, because when running with it I get strange error messages which disappear when I remove the turbopack flag.
It's almost a stock project without many dependencies so I wonder is there a way to speed up development?
A more beefy machine isn't the problem I think?
Is there a way to test how fast it is and how fast it should be? Normally for changing only CSS it should take 1-2 seconds in my opinion, am I right?
I know sometimes it restarts the whole application, and in my case I'm using a global.css file but anyway this should go faster I guess.
Any hints what I could do to speed it up more?
Kind regards
2 Replies
Asian black bear
You could investigate what the Turbo errors are because Turbo is the way to go. It’s multiple magnitudes faster.
Polar bearOP
it got a bit better using turbopack but right now it still took 5 seconds to change a tailwindcss style ... is that supposed to take so long?