Skip to content

Comment on Sprockets: JavaScript dependency management and concatenation (SvN)parent

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.