asp.net-mvcmodel-view-controlleroptimizationcompressiontelerik

Any experience combining JS / CSS in MVC?


I'm planning to implement a solution for combining multiple js/css files into single files in my MVC project, but currently I doubt between the following two possibilities:

Telerik Extensions for ASP.NET MVC (www.telerik.com/products/aspnet-mvc.aspx)

Combres - WebForm & MVC Client-side Resource Combine Library (combres.codeplex.com)

Does anyone has experience with one of these or maybe another combining solution? I'm particularly interested in YSlow scores (before and after) and/or compression statistics/performances.


Solution

  • Are you planning to use the Telerik MVC Extensions when they become available? If so, then their script combiner seems like a natural choice, as their widgets integrate with it...

    If you're going to use script and css resources from multiple sources, then how about a good old-fashioned build script in your build environment of choice?

    I'm particularly interested in YSlow scores (before and after) and/or compression statistics/performances.

    Don't worry too much over a few percentage differences in achieved compression, or a single HTTP header that isn't strictly needed. If you just combine files where possible, minify whitespace, enable HTTP compression and set proper caching headers; then you're far ahead of the average website out there...

    If you prefer to keep minification inside MVC, then it boils down to maturity of the library IMHO. I don't know which one should be the top pick right now. But have a look at IncludeCombiner too; it is part of MVCContrib now, and as such will get a good deal of exposure in the future.