What is the problem with Merging in Magento?
Here is a little graph that visualize the problem. I visited the homepgae, the productpage and the cart. The orange nodes are the merges and the grey nodes are the skin-files. The browser only loads the roange nodes. But you can see, every of the 13 js-files added by default-handle is in every of the 3 big merges. The graph is very big. A solution would be more disjoint graphs.
What is the solution for this problem?
First, the solution wasn’t my idea. Here is the post from Fishpig that explains the problem and a solution. This post inspired me to write this Extension.
Here is a graph that shows every loaded skin-files after visiting homepage, productpage and cart with enabled Lesti::Merge. You see, all loaded files are disjoint.
Were are the configurations?
Lesti_Merge is compatible with Magento CE 1.5, 1.6, 1.6.1, 188.8.131.52, 1.7, 1.8
Lesti::Merge rewrites the model core/layout_update.