H
H
hbrmdc2015-07-11 07:09:45
PHP
hbrmdc, 2015-07-11 07:09:45

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

3 answer(s)
R
Ruslan Fedoseev, 2018-11-12
@danyvasnafig

before delete
explain why?

S
Sergey, 2015-07-11
@begemot_sun

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.

K
Kirill Grigoriev, 2015-07-11
@KirillGrigoriev

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 question

Ask a Question

731 491 924 answers to any question