A good suggestion from a new user.... Have we tried this?
---------- Forwarded message ----------
From: Gary D. <gary@...>
Date: Sun, Jan 8, 2012 at 12:11 PM
Subject: The Nasty "Waiting for the Applet to Load" problem
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
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
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
On 11 Jan 2012 at 7:38, Robert Hanson wrote:
> A good suggestion from a new user.... Have we tried this?
Not as such, I think.
I think I did try display:none or visibility:hidden, but that does not work at least for some
browsers (they don't load the applet if it is not to be displayed -- they are just to clever; they
do the same with Flash, even just being in a background tab).
I also tried minimal size applet (1 or 2 px). That works. Then you can resize it via css.
This solution looks neat. Still, the browser will have to download all files even if the user was
not interested on the 3D view. But it's probably the best solution.
I wonder, will there be any problems if the user goes back one page, or goes to another page
while the Java has not finished loading?