DCSIMG
Compress Your JavaScript files using JSMin - Rotem Bloom's Blog

Rotem Bloom's Blog

Share knowledge on .NET and web development

News

About Me

Glad to help and share knowledge on .NET and also huge fan of Dream Theater.

Contact me via messenger

View Rotem Bloom's profile on LinkedIn

Dream Theater Pics

Blogs I Read

Compress Your JavaScript files using JSMin

Hi All,

One of the main rule in order to improve your aspx page load time, is to reduce its page size.

One of the recommendation is to use *js files and compress them and save them to one js file on production.

Well Douglas Crockford wrote JSMin in C# for the .NET users.

JSMin - is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.

You can download JSMin C# version from here.

In order to check that the js file is valid after JSMin it is suggested that JSLint be used before using JSMin.

Comments

TheKid said:

Very useful...thanks

Vince

# November 10, 2008 6:05 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: