-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow page reload running in development #25108
Comments
Im having the exact same issue, but I can add some other things to take into consideration: It gets stucked even when you dont manually refresh, after approximately 5 minutes using it with hot reloading or 5 minutes of inactivity. Sometimes it doesnt even work to kill the process and start it over and I have to do it repeatedly until it works. im using the exact same versions of the tools but working on Windows 10. |
+1 |
I have found a solution, dont know if its permanent, but here it is. Im using windows tho, so what I did was created an exclusion on windows defender directly on the project's folder and that was it. Windows defender may be causing this delay because of a deep scan it performs on some files within the folder, hope it can help someone. |
I was unable to repro this but I'm on Linux. Thanks |
Can you link an example? |
I encountered the same problem as you described, and following mazc28's suggested solution, I was able to successfully resolve the issue on my Windows 11 system (Node.js v18.20.5). Thank you guys very much for sharing this probem and solution, it's very helpful for me a newbie. If anyone encounters the same problem in a similar development environment, the following troubleshooting steps may be helpful:
|
What version of Next.js are you using?
10.2.0
What version of Node.js are you using?
14.15.4
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
n/a
Describe the Bug
When running
npm run dev
if you reload the page (refresh) a few times, after about the 5th refresh the load time gets very slow and almost unusable.Expected Behavior
Refresh should be less than a few seconds.
To Reproduce
npx create-next-app app
cd app
npm run dev
Refresh the page 5-10 times.
The text was updated successfully, but these errors were encountered: