Exhibit local hosting and simile-ajax-api.js

83 views
Skip to first unread message

mleden

unread,
Oct 21, 2009, 1:36:31 PM10/21/09
to SIMILE Widgets
We've been using Exhibit for about a year now and continue to find it
a robust and elegant solution. However, like most of us, I'm trying
to squeeze every last drop of performance out of the tool. Initially,
we were loading the JS libraries & resources from either the mit or
simile-widgets domains. However, some months back I deployed those
resources on our internal web server and made the appropriate changes
in our pages.
Profiling the performance of our pages now with Firebug, I still see
about 20 GET requests to api.simile-widgets.org for the following
resources:
simile-ajax-api.js
simile-ajax-bundle.js
signal.js
graphics.css
timeline-api.js
timeline-bundle.js
timeline-bundle.css
labellers.js
timeplot-api.js
timeplot-bundle.js
timeplot-bundle.css
On our webserver, I have:
simile-exhibit directory including exhibit-api.js, exhibit-bundle.css,
exhibit-bundle.js, manifest.json files and the following populated
subdirs:
extensions
images
locales
scripts
styles

I can see that many of those "local resources" are getting loaded.
How can I eliminate the remaining calls to simile-widgets.org?

I did try to use this document as a guide:
http://www.simile-widgets.org/wiki/How_to_use_Exhibit_offline#Preliminaries
However, I was unable to get it working and noticed that it still
references the old mit.edu domain.

Thanks for suggestions,
-Mark

John Callahan

unread,
Oct 21, 2009, 1:45:07 PM10/21/09
to simile-...@googlegroups.com
Hi Mark,

I had to go into some of the js files and explicitly point to my local
distribution in a few places, particularly for the extensions. I
forget exactly which ones now... :-( Just a file based search and
replace over the entire distribution helped me a lot. (something like
Notepad++ would work for an easy windows based GUI although a decent IDE
should do the same.)

Once you go production, I would create a local bundle using Apache ant.
I doubt if it helps much once the file sare in the browser cache but
should help with the initial load.

**************************************************
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**************************************************

mleden

unread,
Oct 22, 2009, 2:43:07 PM10/22/09
to SIMILE Widgets
Appreciate your time & comments, John.

Couple of follow-up questions, if I may. Did you make the "file based
search and replace" changes *AFTER* following the wiki page
instructions? Specifically, did you set useLocalResources = true?
Would I need to separately locally host "SimileAjax library" mentioned
in the wiki page?

Thanks again,
-Mark
> >http://www.simile-widgets.org/wiki/How_to_use_Exhibit_offline#Prelimi...
Reply all
Reply to author
Forward
0 new messages