In my Javascript application, quite a lot of data is downloaded from the server, and I thought that in addition to the normal gzip that the server runs, I can encode the data in binary format, and not in text JSON.
Is there a standard way to do this?
Ideally, this should be a small tool that can receive a JSON text file and convert it to a common binary format and a small Javascript library that decodes it.
Also, is there anything special that needs to be done in XHR to transmit binary data?
source
share