Hacker News new | ask | show | jobs
by bayesian_horse 1798 days ago
React is quite a minimal framework (or not even a framework), actually. It's just that it has a huge following and takes some mind-bending to actually benefit from it.
2 comments

Last time I checked, React itself was 150kb minified. OK for a 2mb page. Not ok for 20kb pages.
I'm not in the business of building 20kb pages.

Working with any significant backend API, loading any images, or even your own javascript functionality takes you over that limit easily.

And then there is caching and CDNs...

Why not? At that size, it takes less than your client can blink to load it.
If your client is an otherwise idle system with the latest browser, a fast wired connection, and the developers carefully monitor time to render.

In most cases, at least one of those is not true and the developers are using something like CRA so your site has a number of users who see tens of seconds of nothing while their Android phone downloads and runs a 1MB JS bundle. Bonus points if the marketing department has tossed in a tag manager which delays that even longer.

What you consider minimal, some consider a 100-lb gorilla.
> What you consider minimal, some consider a 100-lb gorilla

A 100-lb gorilla is...quite minimal, actually.

> Male gorillas of the Western lowland gorilla (Gorilla gorilla gorilla) subspecies have average weight up to 140 kg (310 pounds) while females have up to 90 kg (200 pounds).

https://gorillafacts.org/how-much-does-a-gorilla-weigh/

That's about the weight of a chimp.
I think in metric system :D