logoalt Hacker News

Removing Next.js Got My Blog to 100 on Every Lighthouse Category

119 points • by textlanes33 • today at 1:03 AM • 64 comments • view on HN

Comments

pigbearpig • today at 4:40 AM

Respectfully, I don't understand this. They never needed Next.js for a static blog.

This is like writing a post about how I didn't need a Ferrari to commute to work and I saved money by taking the bus.

➕ show 2 replies
ogou • today at 4:29 AM

The vast majority of websites don't need Next.js or React. Those are only useful if you need dynamic and modular updates within the structure, or state management. We've defaulted to React because of the name recognition and simple intertia. It's not a good framework for websites in general.

➕ show 1 reply
pampas • today at 8:04 AM

My home is much easier to heat now I've moved from an aircraft hanger into a cottage.

4pkjai • today at 3:23 AM

I wrote not so basic CRUD application that uses HTML and vanilla javascript. I don't even minify the javascript. That website loads significantly faster than all the other websites I have made.

➕ show 1 reply
Exoristos • today at 4:48 AM

Do tech influencers never tire of announcing their incompetency in their subject area?

➕ show 1 reply
SwellJoe • today at 3:50 AM

I use Hugo published to Github Pages for my blog. I've never thought about performance (it's Fast Enough™ when I visit it), but I just checked and it's 100 on pagespeed. The magic of a static HTML blog is you don't have to think about performance. An entire category of problem just disappears.

➕ show 3 replies
dzink • today at 3:33 AM

I’ve been beating giants in SEO with a static site precompiled at deployment time through includes with Gulp. Plain vanilla JS and CSS.

sampli • today at 4:33 AM

Nextjs can get you 100 if you use it properly. Like anything it’s just a tool that can increase complexity if you want it to

➕ show 1 reply
benmccann • today at 3:35 AM

I got straight 100s using SvelteKit on https://c3.ventures

firefoxd • today at 5:00 AM

Not to brag*, but that's what I've been doing since 2013 on my php blog [0]. It was actually the result of a hn warm hug of death. My CDN is just a separate webserver serving all static assets using nginx.

Both my css and js are dynamically minified and included in the html depending on which component is loaded on the page.

[0]: https://idiallo.com/blog/handling-1-million-web-request

* I am bragging

post-it • today at 3:30 AM

We use nextjs at work and I hate it. Why write each view once when you could write it twice?

I'm open to the idea that we're doing it wrong and that there's a correct and pleasant way to write nextjs, but I think with the tools available today, everyone should just profile and optimize their app so they don't need to render it serverside.

➕ show 2 replies
reassess_blind • today at 4:33 AM

I feel like these large frameworks will slowly die out with the advent of agents.

The big selling point of them was a fast, convenient dev experience with many features (most often unused) being built-in.

Now, those built-in features are becoming a security risk as more vulnerabilities are being found in their 1000s of lines of code, and the developer experience benefit is being nullified by agents whittling away the human involvement anyway.

➕ show 1 reply
aftbit • today at 3:03 AM

What are the best static site generators for blogs these days?

➕ show 18 replies
altmanaltman • today at 4:36 AM

It's pretty easy to get 100 on every lighthouse category even while using next. The scoring is based on how fast a page loads and what blocks its loading time. If you develop it with a bit of care, that is a non-issue. My funny agency website (https://www.pixlw.com/) is purely nextjs and it scores a 100 on Lighthouse as well because I kept working on it till it didn't.

LoganDark • today at 3:33 AM

Caching isn't essential if you can come up with the pages fast enough, unless you need a CDN due to factors like distance.

no1guangming • today at 4:36 AM

[flagged]

andrewmcwatters • today at 3:04 AM

[dead]

nickphx • today at 6:55 AM

Water is wet. Amazing.