ShadowMage Posted October 15, 2010 Share Posted October 15, 2010 Hey guys,Can anybody recommend a good JavaScript minifier? I'd prefer an offline one if possible. I did a Google search but there are a lot of links and I don't know which ones I can trust... Link to comment Share on other sites More sharing options...
thescientist Posted October 15, 2010 Share Posted October 15, 2010 I can't say I've used it or know anyone who has, but Douglas Crockford knows a thing or two about javascript, http://www.crockford.com/javascript/jsmin.html Link to comment Share on other sites More sharing options...
boen_robot Posted October 15, 2010 Share Posted October 15, 2010 Different comparrisons show packer as one of the best (if not the very best) minifier. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 15, 2010 Share Posted October 15, 2010 Which comparisons are you looking at? I've normally used this one:http://fmarcia.info/jsmin/test.htmlI've found a couple online that managed to also strip whitespace out of things like enclosed strings or other places that it shouldn't touch. Link to comment Share on other sites More sharing options...
ShadowMage Posted October 15, 2010 Author Share Posted October 15, 2010 Thanks guys. I'll give JSMin a shot. Packer seems to be an online minifier. I was hoping for an offline one, but I'll give it a shot and if it does a good job I might use it.I tried Yahoo's YUI Compressor which seems to do a decent job (after I figured out how to make it work that is ) Link to comment Share on other sites More sharing options...
ShadowMage Posted October 15, 2010 Author Share Posted October 15, 2010 Which comparisons are you looking at? I've normally used this one:http://fmarcia.info/jsmin/test.html Thanks, jsg. I'll look at that one too. EDIT: Wait, that's just JSMin, isn't it?I've found a couple online that managed to also strip whitespace out of things like enclosed strings or other places that it shouldn't touch. That's precisely the reason I asked for recommendations... Link to comment Share on other sites More sharing options...
ShadowMage Posted October 15, 2010 Author Share Posted October 15, 2010 I can't say I've used it or know anyone who has, but Douglas Crockford knows a thing or two about javascript,http://www.crockford.com/javascript/jsmin.html How the heck do you work this thing... Link to comment Share on other sites More sharing options...
justsomeguy Posted October 15, 2010 Share Posted October 15, 2010 Thanks, jsg. I'll look at that one too. EDIT: Wait, that's just JSMin, isn't it?'Tis, it's the online version.How the heck do you work this thing...You use the online version. Link to comment Share on other sites More sharing options...
boen_robot Posted October 15, 2010 Share Posted October 15, 2010 Which comparisons are you looking at? I've normally used this one:http://fmarcia.info/jsmin/test.htmlI've found a couple online that managed to also strip whitespace out of things like enclosed strings or other places that it shouldn't touch.I was looking at a few a long time ago. I can't find the articles now... I don't use JavaScript much, and so I don't use any minifier.Thanks guys. I'll give JSMin a shot. Packer seems to be an online minifier. I was hoping for an offline one, but I'll give it a shot and if it does a good job I might use it.I tried Yahoo's YUI Compressor which seems to do a decent job (after I figured out how to make it work that is )All ports you see as links below the packer UI are offline libraries for different languages, PHP included, which means you can use it offline, as long as you have that interpreter installed. Link to comment Share on other sites More sharing options...
ShadowMage Posted October 15, 2010 Author Share Posted October 15, 2010 'Tis, it's the online version.You use the online version. JSG used an emoticon!!All ports you see as links below the packer UI are offline libraries for different languages, PHP included, which means you can use it offline, as long as you have that interpreter installed.Ah, I didn't see that.Thanks guys! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.