.NET Tips and Tricks

Blog archive

Free Tool: Minify Text Files on the Fly with Chirpy

The faster you download your Web application's various text files (.CSS, .js), the faster your page appears to your users. One of the best things you can do is minify those files: remove whitespaces, tabs, meaningful names, and everything else that makes code easier for human beings to read. If you've upgraded to ASP.NET 4.5, you can use its bundling features. But if you haven't upgraded, minifying your files is a pain -- unless you have Chirpy.

Chirpy is a free Visual Studio add-in that you can download  and install to Visual Studio. With Chirpy installed, your JavaScript files will be minimized whenever you save them. All you have to do is to assign your file a new extension.

For instance, giving your file the extension .gct.js will cause your file to be minimized using the Google Closure Tools. The minimized version of your file appears as a "code behind file" in Solution Explorer. Similarly, changing the file extension on your CSS files will cause them to be automatically minimized.

There's more: Chirpy will also translate DotLess CSS files into plain old CSS files (and then minify them). If you're willing to work with Chirpy's config file, Chirpy will also combine files to reduce the number of files you need to download. It's cheaper and easier than upgrading to ASP.NET 4.5.

Posted by Peter Vogel on 05/29/2013


comments powered by Disqus

Featured

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube