Can I compress data in JavaScript?

I use rather heavy AJAX with a lot of data going from client to server. How to compress data (mostly plain text) before sending it to the server?

And how can I unzip the data on the server side?

+7
source share
3 answers

jSEND seems to do it EXACTLY. Has anyone ever used it?

Disabled link deleted: led to spam @ jsend.org address page

+4
source

The jsolait library has a codec that supports the LZW algorithm (among other things, including base64 encoding / decoding). The only thing that makes me hesitate a bit is that this library is no longer supported.

EDIT

I was able to find <a href = "" rel = "nofollow"> a slightly larger implementation of the LZW algorithm in Javascript.

+1
source

All Articles