Simple LZMA compressor
Use this webpage COMPRESSOR
to compress and save any javascript libs or any text file like .OBJ .BVH ...
For example three.min.js = 523ko to 106ko | ammo.js = 1599ko to 265ko
You only need extract.js to decompress you script and
add to you webpage or your worker look examples
i use lzma-js engine for compression
simple three example
ammo worker example
extract.load( ['./hex/three.hex', './hex/ammo.hex', './hex/bvh.hex'], callback, [0,1,2] );
// 0 return javasript main element
// 1 return Blob for send in worker : extract.get('ammo');
// 2 return textfile for any parser : extract.get('bvh');
// callback is the function launch after load and decompression