I am quite sure this question might sound silly but I am just curious to know if it is possible to press data before sending it through jQuery post. I was looking for jQuery plugins that have pression algorithm but couldn't really find anything relevant. I am aware that Javascript should no really be used for pression because it is slow but what does one do if the outgoing post involves large amount of data? Any suggestions?
I am quite sure this question might sound silly but I am just curious to know if it is possible to press data before sending it through jQuery post. I was looking for jQuery plugins that have pression algorithm but couldn't really find anything relevant. I am aware that Javascript should no really be used for pression because it is slow but what does one do if the outgoing post involves large amount of data? Any suggestions?
Share Improve this question asked Feb 20, 2011 at 21:37 LegendLegend 117k123 gold badges284 silver badges406 bronze badges 1- 1 Check this question stackoverflow./questions/294297/… almost the same question. – jcubic Commented Feb 20, 2011 at 22:00
3 Answers
Reset to default 4Try this: http://rosettacode/wiki/LZW_pression#JavaScript
Maybe this one? http://jszip.stuartk.co.uk/
lz-string
I've used this in production and had no issues. First press client-side, then depress on server. Especially useful if your server is Node, so you can use the exact same code to ensure patibility.