The open source library JSXGraph (http://jsxgraph.org) contains utilities to read
To uncompress and run this code on client side, the following code has to be included in the HTML code:
Thats all! The compression rate should be fairly good, since the compression algorithm is essentially gzip. There is some additional overhead since the compressed output has additionally to be base64 encoded.
Of course, this effort is useless, if the web server delivers the content already compressed with gzip.
The zip file jsxcompressor.zip contains two examples: testhelloworld.php and testjsxgraph.php.
The source code of the JSXGraph library can be downloaded from https://github.com/jsxgraph/jsxgraph.