Submission + - Improve performance by merging & caching JS &a
NewsCloud writes: "Although breaking up stylesheets and Javascript into different files may be good practice, your resulting Web pages can actually experience a couple of problems from this. Since each CSS and JS file you link on a page performs a server request, the net performance on your site may be slowed. Furthermore, when you make updates to files, users may experience layout or scripting bugs due to client-side caching behaviors. Ed Eliot wrote an elegant script that merges CSS or JS files into individual files to improve performance and manage versioning automatically. He recently added JSMin compression to reduce delivery bandwidth further (a commenter added a PHP port of JSMin). I extended Ed's code to support multiple bundles and found my site performance greatly improved. It's also nice not to have to worry anymore about caching errors around CSS or JS updates. Ed's blog offers a number of other very useful, well-written PHP scripts (via Bazaar repository)."