In my application, I receive large JSON files from an AJAX request. To optimize that I want to compress the files using gzip.

Is there any library that supports decompressing / compressing of gzip files in the browser?

Does anyone have a better idea to optimize the amount of data to transmit?

Thank you very much for your help!