It is very difficult to stay in the race without delivering application that performs “The Best” in the web world. To help us be in the race, we have lot of resources available in the internet to search for and plug in to our web application to gain optimal performance. One such tool is Squish It.
Ok here we go…
1. Download the latest framework from the GitHub from the following location: https://github.com/jetheredge/SquishIt/downloads
2. Extract the zip file and reference the SquishIt.Framework.dll and SquishIt.Mvc.dll in your MVC application.
Note: If the dlls are not available in the bin folder of the extracted zip file, then you will have to open the solution in VS and built it (in release mode) and then reference the dlls in your MVC application.
4. Add the following library references at the top of the cshtml page:
5. Next we have to transform the code that references the css files from:
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/ jquery.alerts.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" type="text/css" />