473,795 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compression code in javascript ?

hi,

is there somewhere an implementation of some compression algorithm zip/
gzip/other ?

Pierre
Apr 7 '08 #1
1 1352
On Mon, 07 Apr 2008 15:00:27 -0700, Pierre wrote:
hi,

is there somewhere an implementation of some compression algorithm zip/
gzip/other ?

Pierre
Searching for "javascript coompression" with Google resulted in this hit
in the #5 slot.

<URL: http://rumkin.com/tools/compression/compress_huff.php >

(Note: For files of any size WORTH compressing, I can't imagine this
being a good idea. Javascript would run too slow for any real-world
purpose. If you are trying to reduce file transfer size, you would be
better to make sure that gzip is enable on your server.

If you are trying to obfuscate strings for some kind of online game,
ROT13 or some other simple cypher may serve you better.

If you are looking for some kind of security, you are not likely to find
it with this approach.)
Apr 7 '08 #2

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

Similar topics

1
1838
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!
11
2499
by: Shiperton Henethe | last post by:
Dreamweaver 4 Hi Can anyone recommend a decent utility for compressing HTML that is safe - i.e. that *definitely* doesn't mess with the appearance in any browsers. I run a growing website whose pages are inexorably getting too "heavy".
1
1131
by: lunter | last post by:
CrushHTML vs HTMLzip - html compression tools. Better HTML compression than HTMLZip: CrushHTML: http://www.crushhtml.pc44.pl
8
11724
by: vnarayana | last post by:
Need to transfer large data (Appox 5MB in the form of XML & HTML) from Internet Explorer to Web sphere application server. Want to know if there is anyway I can compress data (JavaScript or otherwise) before sending it to the server as it takes a long time to do this operation. I am currently using xmlhttp. Sample code below. xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); xmlhttp.open("POST",'http://xyz.com',true); var vSendXML =...
5
1799
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 to the end-users computer. Currently at a state of 30-40% complete, the main engine is over 600 KB...
6
4835
by: Chetan Patil | last post by:
I would like to obfuscate and compress (remove comments, newlines etc) my javascript files / ajax code. Is there a module that will do this on the fly with some level of caching? Does such a beast exist? thx Gupit
2
1827
by: petermichaux | last post by:
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
3
1566
by: Benny Ng | last post by:
Dear All, Now I met some performance problems in my application. Because according to our business. The size of some web forms are larger than 1xxx MB. So it takes a long time for user opening a web page. Surely we are modifying some source code for performance improvment. But now i'm thinking should we improve the application performance by IIS Compression? I saw many mentions from Google/Yahoo. Some people said it can be useful for...
20
2938
by: chance | last post by:
Hello, I want to add compression to a memory stream and save it in an Oracle database. This is the code I have so far: //save the Word document to a binary field, MemoryStream dataStream = new MemoryStream(); doc.Save(dataStream, SaveFormat.Doc); //now compress it GZipStream compressedZipStream = new GZipStream(dataStream,
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9046
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7544
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2922
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.