Answer the question
In order to leave comments, you need to log in
Does it make sense to merge minified files with Gulp if...?
Good afternoon!
When building a project, does it make sense to merge (gulp concatCSS plugin) all css files if one of them is bootstrap.min.css?
Or is it better to include the minified gulp file separately from bootstrap.min.css? That is, both, separately?
Answer the question
In order to leave comments, you need to log in
Does it make sense to merge minified files with Gulp if...? one of them is bootstrap.min.cssFor HTTP1.0/1.1 - yes, as the previous speaker tells you. For HTTP/2 - the number of files is not so critical, connection 1, not 16-32 as in the case of HTTP1.x.
In order to reduce the number of requests to the server, it is better to use 1 css file, for which it is also easy to set up caching, so that it will be loaded only 1 time. And if the question is whether it will work in this case - yes, it will
Of course it's worth it, the main thing is not to confuse the sequence. Bootstrap code should go first, then yours.
I would suggest making two CSS files in one to concatenate and minify your styles and important libraries like the bootstrap grid. And the second style file libs.min.css with all other libraries, for example, the rest of the bootstrap (if you use it) used in the project and include this file at the end of the body of the html document
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question