Level 61
Depends on their use. If you need all of them all the time then mix them and set not to expire that often. If you need only few of them then leave them separated.
1 like
Hey there, I have some directory that includes over 10 CSS and javascript files, The question is Should I mix them into a single file or just put them in the public directory?
A single concatenated asset file each comprised of your various CSS and JS resources will mean fewer network requests; so the result should be a faster first page load. You also can take advantage of automated minification, purging and autoprefixing (amongst other build steps).
Please or to participate in this conversation.