The 2 seconds is required for the PubChem query. Apparently that's a much
more involved search than NCI. Here is the same, but from NCI:
http://chemapps.stolaf.edu/jmol/jsmol/liteNCI.htm On my iPhone that loads
extremely fast. (OK, I'm on a network here, but when I switch to 3G, I
don't notice more than a split second difference.)
So the point of this is that for those wanting the flexibility of having a
mostly nonscriptable small model to twiddle that is in MOL file format
(think "PubChem"), JSmol is still a great way to go. You can build this
into any page and just basically "flip a switch" to reload the page using
full-blown Jmol. JSmol will take care of finding the file on your server or
database.
If your server is gzip-compressing JavaScript files, then the bandwidth
comparison is this:
JSmol/full: 500K
JSmol/lite: 45K
Otherwise:
JSmol/full: 2.0 MB
JSmol/lite: 130KB
If someone wants to experiment with this, extending it in different ways --
maybe CIF files or PDB files or XYZ files, feel free. Just write some sort
of JSmol.lite.xxx.js extension. I think I've done what I want to do with it.
Bob
On Sun, Mar 24, 2013 at 1:24 PM, Michael Evans <[email protected]> wrote:
> Works great! A second or two loading time on the iPhone. The skin here is
> somehow more artistic than Jmol's normal look... :-P
>
> Cheers, Mike
>
>
> On Sunday, March 24, 2013, Robert Hanson wrote:
>
>> OK, here's a first shot:
>>
>> http://chemapps.stolaf.edu/jmol/jsmol/lite.htm
>>
>> Tell me what you think.
>>
>> Subtracting 2 seconds off the load time for the call to
>>
>> [12:43:56.467] GET
>> http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/%20dopamine/SDF?record_type=3d[HTTP/1.1
>> 200 OK 2063ms]
>>
>> should leave you with about 400 ms total load time. The size is about 131
>> KB total JavaScript unzipped; 45KB gzipped. Capabilities are extremely
>> minimal, and I suggest we keep them that way -- just balls and sticks.
>> Nothing fancy. No scripting, but the Info block allows for some
>> parameterization:
>>
>> bondWidth: 4,
>> zoomScaling: 1.5,
>> pinchScaling: 2.0,
>> mouseDragFactor: 0.5,
>> touchDragFactor: 0.15,
>> multipleBondSpacing: 4,
>>
>> Be sure to try it on your smart phone.
>>
>> Comments? Suggestions?
>>
>> Bob
>>
>>
>>
>>
>
> --
>
> ---
> Michael Evans
> Department of Chemistry
> University of Illinois, Urbana-Champaign
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users