JSMin and JavaScript Conditional Comments

In Robert Nyman's post Conditional Compilation in JavaScript he noted that “Unfortunately, JSMin removes conditional compilation comments, but I believe this is due to not having been updated in a while, and not up to speed with modern web development practices”. So I took that on as a project. I took Franck Marcia's javascript implementation of JS Minifier and modified the javascript code to not take out Microsoft javascript conditional comments.

Paste your javascript code in the code field, click the JSMin button and the minified code will appear in the output field. Copy the minified code, paste it in your favorite text editor and save.

JSMin Page and Downloads

Thursday, June 12th, 2008 07:00:00 AM in  Web Development 

1 Comments

Gravatar Image1. Posted at 6/12/2008 4:13:13 PM by Robert Nyman

Great work, Tanny!

Add a comment

Comment Preview

Comment Guidlines

Keep comments relevant. Inappropriate, offensive or off topic comments may be edited and/or deleted. Advertisements will be deleted.

If you choose to comment, please leave a real name, not an alias, and an email address or a link to your own site.

E-mail addresses will not be displayed. If you leave an e-mail address and I respond to your comment you will receive the response at your e-mail address.