What is Concatenation?
Sure, I can tell you that concatenation will help speed up your site, and you can easily install a minification plugin… but why does concatenation help?
First, to understand why concatenation helps, we need to understand what concatenation is.
Simply, concatenation is the combining of files into one large file.
How Does Concatenation Help?
To understand why concatenating files is beneficial, let’s consider the act of having to bring in many grocery bags.
Imagine that there are 12 bags in the trunk of your car. You have the option of taking all 12 bags in one trip or taking a trip for each bag.
If you take all 12 bags in one trip, the trip will likely take a bit longer since you’re carrying more weight. But, if you take multiple trips, then you’re traveling the same distance many many times.
Arguably, taking all 12 bags in one trip will require more effort but will be faster.
While these larger files themselves will take a bit longer to download, the browser isn’t having to take multiple trips back to the server to download individual files.