I
I
IvanIvanIvanIvanIvan2020-11-26 19:50:03
React
IvanIvanIvanIvanIvan, 2020-11-26 19:50:03

react build size?

The application is built in CREATE REACT APP. Please tell me, is the size of 1.7 mb of the main build file normal?
What build sizes are considered normal on average?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Druzhaev, 2020-11-28
@OtshelnikFm

Hello. I wondered 2 years ago - when I saw js for 1 megabyte. Well, what now? Now it weighs more than 2 megabytes
Here is the topic, look at 1 megabyte of js-minimized code from the plugin - is this normal for one plugin?
The front end was minted completely. Do you know what they say? "Well, not 2 megabytes, but 500 kilobytes are given to you by gzip over the network." About unpacking and execution - they do not think. And the counter argument: "So this is the first time so, then everything is cached." These are the web frontends.
Remember the days when jquery was chastised for its extra 90 kilobytes to load the page? And here - here's 2 megabytes for you!
Although jquery was used by everyone on the page (for example, wordpress - all plugins, theme) - and here everything in the bundle uses only one plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question