473,573 Members | 3,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Good JavaScript compression tool

Hi,

Anyone here use a nice open source JavaScript compression tool they
could recommend. Is there a well known standard tool for this? I
imagine a small script written in Ruby or Perl that removes comments,
extra whitespace (new lines where possible), shrinks variable names
etc.

Thanks,
Peter

Apr 1 '06 #1
2 1819
pe**********@gm ail.com said the following on 4/1/2006 4:47 PM:
Hi,

Anyone here use a nice open source JavaScript compression tool they
could recommend. Is there a well known standard tool for this? I
imagine a small script written in Ruby or Perl that removes comments,
extra whitespace (new lines where possible), shrinks variable names
etc.


http://www.crockford.com/javascript/jsmin.html

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 1 '06 #2
pe**********@gm ail.com wrote:
Anyone here use a nice open source JavaScript compression tool they
could recommend. Is there a well known standard tool for this?


http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1830
by: usman | last post by:
Is there any text compression algorithm exists in javascript? wanna to compress the large textual data before submitting the form. Thanks Usman *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
27
2245
by: Matt Kruse | last post by:
Since this topic has come up several times in other threads, I thought I'd make a separate thread and gather opinions from (hopefully) a more varied range of newsgroup participants. What are your thoughts on the development and use of generalized, reusable javascript libraries? Discussion points: 1) Is the overhead of a 25k (for...
2
30116
by: deko | last post by:
Is it best practice to set Unicode Compression to "No" for memo fields in a table? What about text fields? According to the VB help entry: "Data in a Memo field is not compressed unless it requires 4,096 bytes or less of storage space after compression. As a result, the contents of a Memo field might be compressed in one record, but...
5
1791
by: josh.tucholski | last post by:
I'm looking for some tools that allow us to implement Javascript Header File Compression. I know there are parsers out there that kill all the commenting and obliverate the code to make it as small as possible, but perhaps if I show our situation we have this may make more sense. Our web application has a backbone engine that is downloaded...
20
3269
by: twigster | last post by:
Hey everyone, I'm looking for a good way to obfuscate some Javascript code. Does anyone have a good experience or bad experience with a particular software? thanks
6
2576
by: Aaron Gray | last post by:
Hi, Is there any tool that will concatinate JavaScript files compacting them spacewise and removing comment fields ? I have some sed script that sort of does the job but was wondering if there were any hopefully open source tools that will do the job. I don't want encryption or obverscation though.
2
2813
by: Daz | last post by:
Hi everyone. I would like to find a good JavaScript compactor/obfuscator. Obfuscation is not important to me really, but I would like a compactor that understands variables and functions in a way that it can shorten the names. I would also like for the compactor to be able to shorton the property/method names of custom objects if such a...
4
2830
by: Garg | last post by:
Hi All, Can you suggest me the a good editor fot HTML and Javascript. It will be good if that also support JSP. thanks Tarun Garg
21
5989
by: =?Utf-8?B?VkJB?= | last post by:
I compressed a file with GZipStream class and is larger than the original file.... how can this be?, the original file is 737 KB and the "compressed" file is 1.1 MB. Did i miss something or is normal with that compression class? -- VBA
0
7687
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8201
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7777
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5585
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5290
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3731
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3731
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1300
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1039
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.