For some big cases the component_segmentation can produce a json files output folder of huge sizes 10-100-... GB. The idea is to gzip compress each file and serve the Javascript with .json.gz files. They can be unpacked on the client side either automagically by a browser itself or explicitly by a script e.g. https://www.npmjs.com/package/decompress-response