4 ms·
Last time I checked, React itself was 150kb minified. OK for a 2mb page. Not ok for 20kb pages.
by habibur 5y ago
Last time I checked, React itself was 150kb minified. OK for a 2mb page. Not ok for 20kb pages.
- joesb 5y agoWhy not? At that size, it takes less than your client can blink to load it.
- acdha 5y agoIf 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.
- bayesian_horse 5y agoI'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...