Hi,
Did you try ClosureCompiler?
http://closure-compiler.appspot.com/home
It will remove whitespaces and rename local variables.
In case of GLmol, it reduced the size more than 40%.
Best regards,
Takanori Nakane
--
Bob,
Chrome Windows and Mac are about 7 seconds. Firefox Windows and Mac results in
the following pop-up and no load. Am I possibly missing a required FF setting?
Otis
3554.666748046875 function (text, font3d, g3d) {
var pixels = g3d.apiPlatform.getTextPixels(text, font3d,
On 10/29/2012 08:26 PM, Robert Hanson wrote:
I've put what we have so far into
http://chemapps.stolaf.edu/jmol/jsmol/jsmol-10-29-2012.zip
in case you want to experiment. You will want to take a look at test2.htm
to see how that works. No documentation whatsoever at this point, but all
the
3) I couldn't get rid of the structure load part below the canvas (input
+ menu + button).
I think it is this line in definition of Info:
addSelectionOptions: true,
try setting it to false.
This is my own note in
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object
4) 'moveto' doesn't work as usual, just the final position is displayed.
I have seen this too in my testing page. Jump from start to end
position, no movement in between.
This is simply because animation is not implemented yet.
Takanori Nakane
Great progress today with optimization of file loading. It's still a 3-MB
file download (one single JavaScript file!), and that's not compressed at
all, but still, way better than 300 individual downloads.
http://chemapps.stolaf.edu/jmol/jsmol/test2.htm
full JavaScript code is in:
Otis, almost certainly that's just a caching problem.
On Fri, Nov 2, 2012 at 7:46 AM, Otis Rothenberger osrot...@chemagic.comwrote:
Bob,
Chrome Windows and Mac are about 7 seconds. Firefox Windows and Mac
results in the following pop-up and no load. Am I possibly missing a
required FF
Seven seconds on iPad Safari. Fourteen seconds on iPad Chrome. Interestingly,
iPad Chrome is also more sluggish on model manipulation.
I still don't understand the load problem on FF, but it means I can't give a
Java/HTML5 load comparison. While the HTML5 worked on Chrome, I can no longer
use
By the way, this is interesting.
3554.666748046875
is width x height
Apparently there is some sort of bug in Firefox that results in the width
and height becoming non-integer values after repeated use of CTRL-[+] and
CTRL-[-]. Use View...reset and then it should be OK, and I believe I fixed
On Fri, Nov 2, 2012 at 7:59 AM, Rolf Huehne rhue...@fli-leibniz.de wrote:
On 10/29/2012 08:26 PM, Robert Hanson wrote:
I've put what we have so far into
http://chemapps.stolaf.edu/jmol/jsmol/jsmol-10-29-2012.zip
in case you want to experiment. You will want to take a look at test2.htm
Bob,
On both Mac and Windows, I cleared cache and rebooted. The FF problem persists.
Here's the Windows error log:
Error in parsing vale for value for width. Declaration dropped.
Error in parsing vale for value for height. Declaration dropped.
RangeError: invalid array length.
Otis
--
Otis
On 11/02/2012 06:56 PM, Robert Hanson wrote:
Q: How can I activate the message callback?
same way as usual. Might not have engaged that
I am still only familiar with the old 'Jmol.js' and havn't looked at the
new object oriented library (and currently don't have the time for it).
I
Bob,
You probably know this, but this is the code block that FF does not like - Otis
Clazz.newArray32 = function(f, args) {
var dim = args[0];
if (typeof dim == string) {
dim = dim.charCodeAt (0); // char
}
var len = args.length - 1;
var
Hi Rolf
jmolScript(command) that became Jmol.script(jmolApplet0, command)).
Exactly that
There is part of it at the Wiki (ongoing doc)
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object
Mmmm... maybe a how to upgrade table ?
Not much time now either.
On 11/02/2012 07:18 PM, Angel Herráez wrote:
Hi Rolf
jmolScript(command) that became Jmol.script(jmolApplet0, command)).
Exactly that
There is part of it at the Wiki (ongoing doc)
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object
Angel, thanks for the hint. It is quite simple:
you're getting non-integer values for those widths and heights. This is my
page or yours?
Can you check:
Jmol._getElement(jmolApplet0,canvas2d).width
Jmol._getElement(jmolApplet0,canvas2d).height
? and possibly
Jmol._getElement(jmolApplet0,appletdiv).clientWidth
?
On Fri, Nov 2, 2012 at
it's being sent a non-integer value, that's all.
On Fri, Nov 2, 2012 at 1:17 PM, Otis Rothenberger osrot...@chemagic.comwrote:
Bob,
You probably know this, but this is the code block that FF does not like -
Otis
Clazz.newArray32 = function(f, args) {
var dim = args[0];
if
On 11/02/2012 06:56 PM, Robert Hanson wrote:
2) Left mouse button doesn't rotate the structure but zooms instead.
This doen't occur if I use the original 'test2.htm' locally.
That problem was fixed in the last update to
http://chemapps.stolaf.edu/jmol/JSmol.zip
I installed it (in a new
ok. It means we are not getting the width of the canvas. I may ask you to
do some testing. When that number is 0, then any mouse click is read as
being in the zoom-bar on the right.
On Fri, Nov 2, 2012 at 1:56 PM, Rolf Huehne rhue...@fli-leibniz.de wrote:
On 11/02/2012 06:56 PM, Robert Hanson
19 matches
Mail list logo