Removing Next.js Got My Blog to 100 on Every Lighthouse Category
I wanted a blog as fast as Bear Blog but with more features. After caching and image optimization, Next.js still shipped legacy JavaScript and unused code—230KB of it—even on static pages. So I ripped out Next.js for Hono, cut unused code to 407 bytes, sped up the long task by 78%, and hit perfect scores across the board.
At first I suspected hydration, but once I dug in, the problem wasn’t hydration alone. The cause was the client runtime that Next.js always ships, even for static pages.
- pigbearpig
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.
- pampas
My home is much easier to heat now I've moved from an aircraft hanger into a cottage.
- ogou
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.
- hackersnooze1
I am glad front-end devs are finally realizing how stupid and overengineered they made everything
- ActionHank
Gotta be honest, I think the no man’s land that nextjs occupies is more of a niche than most people realise.
- graemep
> Hugo is the best of the bunch, but in the end, setting it up is still a hassle.
Then chooses an approach that looks like a lot more work than setting up Hugo.
- Exoristos
Do tech influencers never tire of announcing their incompetency in their subject area?
- 4pkjai
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.