Is there a library avaliable for compression in Javascript -
i looking sending data server in compressed format client(with ajax requests), , decompress data browser? there library this?
i not looking compressing javascript files!
thanks...
edit: think question not clear enough, don't want compress html files, want store compressed lzma files or other compression format on server(like obj file), , need decompress them after got ajax. not simultaneous compression/decompression gzip. opening zipeed files after getting them javascript.
your web-server (and browser) should capable of handling transparently using gzip. how setup depend on server using.
checkout mod_deflate in apache or enabling gzip in nginx.
the browser automatically decompress data before reaches xhr handler , can safe in knowledge data compressed as possible in transit.
Comments
Post a Comment