Hacker News new | ask | show | jobs
by habibur 1798 days ago
Last time I checked, React itself was 150kb minified. OK for a 2mb page. Not ok for 20kb pages.
2 comments

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.