buunguyen / combres

ASP.NET and MVC performance optimization library ⛺
Other
123 stars 36 forks source link

Code Shelter

Overview

Combres helps your ASP.NET and ASP.NET MVC applications perform faster and rank better with YSlow and PageSpeed.

Platforms:

Features:

Check out this Code Project article for a thorough introduction.

Usage

Install from NuGet

PM> Install-Package combres
PM> Install-Package combres.log4net (optional)
PM> Install-Package combres.mvc (optional)

Optional steps for ASP.NET 3.5 users, those using ASP.NET 4 or above can safely ignore:

Edit App_Data/Combres.xml to declare your JS and CSS resources

Use resource groups in your pages as follows:

<%= WebExtensions.CombresLink("siteCss") %>  
<%= WebExtensions.CombresLink("siteJs") %>

ASP.NET MVC developers can import Combres.Mvc namespace and declare CSS/JS like below:

@using Combres.Mvc;
...
@Url.CombresLink("siteCss")
@Url.CombresLink("siteJs")

That should be it. Start your browser to observe Combres in action. For more advanced usages, refer to these resources:

Changelog

2.3.0.4

2.2.2.18

2.2.2.17

2.2.2.15

2.2.2.6

2.2.2.2

2.2.2.0

2.2.1.8

2.2.1.5

2.1

2.0

1.2

1.1

Author

@buunguyen