Comment on Sprockets: JavaScript dependency management and concatenation (SvN)parentComments−tlrobinson17yIt seems that concatenating scripts could hurt performance in browsers that can do parallel script downloading, since it can no longer take advantage of the parallelism.−axod17yIt's be an interesting one to test, although I'd expect the gain in compression is worth it.eg gzip(concat(A, B)) compresses to a smaller file than gzip(A) + gzip(B)For example, if I take 20 js files from Mibbit and gzip them individually, total size is 47,890 If I concat then gzip, it's 42,681
Comments
It seems that concatenating scripts could hurt performance in browsers that can do parallel script downloading, since it can no longer take advantage of the parallelism.
It's be an interesting one to test, although I'd expect the gain in compression is worth it.
eg gzip(concat(A, B)) compresses to a smaller file than gzip(A) + gzip(B)
For example, if I take 20 js files from Mibbit and gzip them individually, total size is 47,890 If I concat then gzip, it's 42,681