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

korindiehacker.bloffy.blog

94 points by textlanes33 5 hours ago


ogou - 2 hours ago

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.

pigbearpig - an hour ago

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.

4pkjai - 3 hours ago

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.

Exoristos - an hour ago

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

SwellJoe - 2 hours ago

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.

firefoxd - an hour ago

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

dzink - 2 hours ago

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

benmccann - 2 hours ago

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

post-it - 3 hours ago

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.

sampli - an hour ago

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

reassess_blind - an hour ago

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.

aftbit - 3 hours ago

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

altmanaltman - an hour ago

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 - 2 hours ago

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 - an hour ago

[flagged]

andrewmcwatters - 3 hours ago

[dead]