Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Minification in C#

Tags:

Tried searching around for a complete library for HTML Minification in C# but haven't been able to locate anything that is useful ?

Does anyone here have such a library or know of one ?

like image 380
Tom Avatar asked Apr 29 '10 04:04

Tom


People also ask

What is HTML minification?

Minification is the process of minimizing code and markup in your web pages and script files. It's one of the main methods used to reduce load times and bandwidth usage on websites. Minification dramatically improves site speed and accessibility, directly translating into a better user experience.

Does Minifying reduce file size?

Minifying CSS files can help reduce their file sizes by removing comments, white spaces, and redundant code. The smaller these CSS files are, the faster they are downloaded, resulting in a faster execution by the browser.


1 Answers

As for static HTML compression, I found this port of Google’s htmlcompressor library. I wrapped it in MSBuild Task and I'm happy:)

like image 128
2xMax Avatar answered Sep 21 '22 18:09

2xMax