Is it possible to merge several JavaScript files being used on a site into one? I'm looking to do this to minimize server loads by forcing only one download. This way I can keep my JavaScript organized into separate files and still have efficiency.
A:
Hey,
You either need to have a batch process merge release scripts from your debug files (YUI compressor is a good tool and there is an API in .NET available on codeplex.com). Or, you can do what companies like Telerik do, create your own HTTP handler or module that's responsible for merging the files yourself, not an easy task to do.
HTH.
Brian
2010-02-23 16:00:35
A:
There is an ASP.NET tool for doing this. Don't know if it's any good. There's also this blog post by Omar of PageFlakes fame.
You'd also want to make sure that the combined sripts are minified as well with a tool like YuiCompress or the tool in the video Oded mentions
nickyt
2010-02-23 17:32:41