A good suggestion from a new user.... Have we tried this?

---------- Forwarded message ----------
From: Gary D. <[email protected]>
Date: Sun, Jan 8, 2012 at 12:11 PM
Subject: The Nasty "Waiting for the Applet to Load" problem
To: [email protected]


A number of people have published solutions to the nasty issue of the time
it takes java to load and then for the applet to load.
Like everyone else, I put up a 2d image of the molecule while java does
it's thing.

Unlike the other solutions that nominally use a control to request the 3d
only if you want it, but then still subject you to the load time,
but only if you need the 3d features, I moved the applet off screen to the
top using position absolute where it can load in peace, then when the app
ready callback is
called, I eather put up the 2D/3D radio buttons and let the user toggle
back and forth instantly or I just replace the 2D image with the applet.  I
size them the same
so the screen does not bounce when I swap them.

The problem with display: none; is that the java does not load
asycnrounously when the applet is present but not displayed.
Moving that applet off the top of the page but still displayed solved that
issue.  I assume others would find that useful.




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to