I've just tried the Closure compiler (jar application version) with the same jsmolcore.z.js file default options reduce the size to 2.4 Mo which is about the same amount of compression as uglify.js. there is an advanced compression setting allowing for reducing functions names. Setting this flag leads to a 1.6MB file But, unsurprisingly, it also breaks the code as other scripts calls to this script can't be processed. To achieve that, all the files should be processed and compressed simultaneously by the compiler (which I haven't yet found out how to do). It might be of further interest to know that this 1.6MB file can be gziped to a 500kB file. So, minimification + gzip compression could reduce the load by 7 (3.4MB>0.5MB). Paul
Le 18 nov. 2012 à 23:50, Paul Pillot a écrit : >> For information, >> I've just tried to minimify the jsmocore.z.js file using the uglifyjs >> library running on node.js >> With default parameters It shrinked the file from 3.4 to 2.5 Mo (-26%) which >> is less than what I expected... >> I replaced the original file by its compressed version and it seemed to work >> exactly as expected (I cleaned the cache before and made sure the >> compressed file is indeed loaded). >> Looking at the code showed that variable names were kept identical, as well >> as some comments >> Paul >> >> Le 13 nov. 2012 à 20:31, Robert Hanson a écrit : >> >>> >>> >>> JSmolThree.js and JSmolGLmol.js are only necessary if you are using the >>> WebGL version (which currently is only partially working). >>> >>> None of these are compressed. If someone wants to do that and test that or >>> send them back to me, that would be great. The main file that might benefit >>> from compression would be j2s/java/core.z.js >>> >>> Bob >>> ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users