Skip to content
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

Very slow initial page rendering and after app inactivity #2568

Closed
jackmatrix opened this issue Jul 15, 2017 · 4 comments
Closed

Very slow initial page rendering and after app inactivity #2568

jackmatrix opened this issue Jul 15, 2017 · 4 comments

Comments

@jackmatrix
Copy link

jackmatrix commented Jul 15, 2017

I am in dev mode and have noticed that the initial rendering of each page was quite slow. When i click on Link to navigate to another page. It may take several seconds. But after a page has been visited once, the app become fluid a quite reactive. Also, i've noticed it become slow agin after a certain period of inactivity, and need to visit each page again to get the app fluid and fast.

Is this normal ?

@supra28
Copy link

supra28 commented Jul 15, 2017

please see #2487

@sergiodxa
Copy link
Contributor

In dev mode next only build the currently active page, if you navigate to another page it would build it before the page change, that's way us slow. And about the inactivity is because the same reason, it needs to build the page again because if a page is not active Next erase the built files.

This allow you to have a big app with a lot of pages and reduce the initial build time when running next and the amount of memory consumed by webpack while building because it will only watch the files required in the current page.

@timneutkens
Copy link
Member

Tracking this in #2487.

@agionfriddo
Copy link

I had been looking for this solution for weeks!!!

@lock lock bot locked as resolved and limited conversation to collaborators Dec 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants