views:

63

answers:

3

Anyone who works with CastleProject MonoRails MVC who knows if I can combine and/or compress formhelper and behaviour js files together into something like monorails.js?

I want to get the amount of webrequests as low as possible..

+1  A: 

If loading the two javascript files together on one page isn't a problem then you'll get the same behavior out of concatenating them into a single file. While you're at it you can minify them as well: http://developer.yahoo.com/yui/compressor/

Peter Burns
+1  A: 

Peter's answer is good but there is a .NET implementation of YUI Compressor. I think it will be more preferable and useful for .Net projects.

zihotki