Built-in gzip decompression in chrome in javascript

Is it possible in chrome to unzip a file and read the contents in js in its own way, and not through javascript. I need to unzip a large file in a browser and do it in javascript is really buggy and slow. I know that it is possible to deliver gzipped html and css files to browsers. is it possible to do the same with files loaded in javascript via ajax?

0
source share
1 answer

Is it possible to do the same with files uploaded to javascript via ajax?

Yes, ajax requests are treated like any other HTTP requests, and the responses will be automatically unpacked. You just need to send the same suitable headers Content-Encoding.

+2
source

All Articles