B
B
b13134382016-03-05 10:29:56
css
b1313438, 2016-03-05 10:29:56

Are minification and concatenation of styles and scripts relevant in 2016?

The essence of the question is in the title. And if there is not much difference with minification, it won’t get worse anyway, then with concatenation everything is not so simple. Does it make sense to do this in 2016, after all, HTTP \ 2 came out?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey delphinpro, 2016-03-05
@b1313438

caniuse.com/#search=http2
Support is already good, but it's too early to stop concatenating files, I think. Moreover, it only works on https.
And minification will never be superfluous.

A
Alexey Ukolov, 2016-03-05
@alexey-m-ukolov

HTTP / 2 "left" on the server, but it has not yet reached the clients .
The simple answer is that if you don't have an ssl certificate, then http2 is still like walking to the moon. If there is a certificate, then you need to analyze user visits for the browsers used and then decide.
If you decide to jump, then yes, you can opt out of concatenation.

T
Taras Serevann, 2016-03-05
@Taras_Serevann

Why not? There are excellent automatic tools for this, so use them.

V
Vladimir, 2016-03-05
@mvs

So far, the proportion of http2 browsers and http2 hosting is small, so you should not give up on optimization.
As an option - your own server that can http2 and check in the application / on the site whether the visitor's browser can use the new protocol: if it can, then disable optimization and return statics one by one.
Well, moderate minification without wrapping in eval will be useful in any case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question