I was wondering if there is a way to parse a zipped xml file such as example.xml.gz with jQuery on the fly?
The reason is the file is huge and effects the performance if we call a request to the unzipped file. Any tips?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could let the browser handle the decompression.
Browsers support
Content-Encoding=gzip, which does the gzipping “transparently” at the server/client level.You can serve pre-gzipped data from a file (your
example.xml.gz) as well, this just requires some configuration to make the server send the header and send the data as-is, not trying to recompress it.