Answer the question
In order to leave comments, you need to log in
How to speed up the transfer of the main js file of webApp?
There is a webapp in reactJS. The main js file is 1.1 MB. How to speed up its transfer? How to compress, etc.? Never did it.
ps. somehow I came across an article that gzip is already the last century. This is true?
Answer the question
In order to leave comments, you need to log in
Minimize the file. Compress the gzip file at maximum settings. Put the archive next to it. Configure NGINX to serve a gzip file when the client is able to accept gzip.
As far as complexity:
1. Minimize the file using YUI Compressor or cssmin.js.
2. Enable SDCH compression, well, or GZIP, it's not so bad.
3. Refuse to use libraries and reengineer, 1.1 Mb for a JavaScript file is not very good.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question