C
C
ChernovGV2019-10-19 17:12:48
Web development
ChernovGV, 2019-10-19 17:12:48

Does it make sense to minify js\css with gzip + http2 enabled on nginx?

Hello!
Chrome recommends minifying js\css files, but is it practical when using gzip compression and also http2 protocol?
I suppose that gzip gets rid of minification, and http2 from combining all assets into one (several) file.
Does it make sense to get dirty from a practical point of view?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2019-10-19
@ChernovGV

I made a report on this topic: https://youtu.be/rQDd5kCwDj8
Briefly - yes.

D
Dmitry, 2019-10-20
@ddv

You need to minify and have (better prepared in advance, not on the fly) 3 options:
- plain text for very old browsers and robots that forget to specify accept-encoding
- gzip for just old browsers
- br (brotli) for modern browsers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question