question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow "> Building page:"

See original GitHub issue

In dev mode, Next takes 26+ seconds to build a page for me.

DONE Compiled successfully in 26253ms

This has become a major pain during development, each time I change code.

I presume this is because I have lots of npm packages (48), or they are large/complex.

Do others experience this?

Can anything be done to speed this up, besides removing packages?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:24 (17 by maintainers)

github_iconTop GitHub Comments

7reactions
marbemaccommented, Jul 12, 2017

Our two cents - now that we’re fully migrated over to next, we’re seeing issues similar to @chaffeqa - particularly since every page requires most of our JS because of our mobx stores (like what is described above with redux).

In addition, we get the memory fault described in #282 at least a few times a day (much more for team members with less powerful computers).

We moved from base webpack + dll plugin, which did not have any of these issues. There was a longer startup cost (60s), but subsequent pages did not have to rebuild, and we did not run into memory leaks. This is a MUCH nicer dev experience imho, since we only really need to do a cold start once or twice a day, but we’re constantly navigating pages.

Question 1: is there a way to compile all the pages on server start (to disable the on demand page fetching)?

Question 2: If there is anything that we can try to help this situation and speed up our development? DDL plugin sounds promising (and helped us before) - particularly since we load heavy dependencies like https://github.com/codemirror/CodeMirror, https://github.com/jpuri/react-draft-wysiwyg, and https://github.com/Semantic-Org/Semantic-UI-React.

Above complaints aside, thanks for all the hard work that’s been put into next - it’s a fantastic library 😃.

4reactions
rauchgcommented, Jul 10, 2017

It’s part of our very near-term roadmap to dramatically speed up compilation performance, both for dev and prod. A big part of that is doing less work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Reasons Why Your Website Is Slow and How to Fix It | Inc.com
Here are some of the most common issues that can slow a website down and solutions that every site owner can benefit from....
Read more >
10 Reasons for Slow Website Loading (With Solutions)
Understand these 10 core reasons for slow website loading and learn how to resolve these issues & your traffic, revenue, and credibility.
Read more >
How Do I Fix a Slow-running Website? - Growth Rocket
This blog discusses what makes a website slow and shares tips on how to improve website loading speed. Reasons Your Website is Slow....
Read more >
12 Reasons Why Your Website Is Slow (And How to Fix Them)
Discover the most common causes and fixes for a slow website. Plus, learn how speedier performance can benefit your site's SEO.
Read more >
Website Speed: 5 Ways To Fix a Slow Website - Bluehost.com
Learn what could be causing a slow website, plus five website speed ... When you build your website, there might be excessive inline...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found