Gzipped Timeline?

6 views
Skip to first unread message

7bf

unread,
Apr 29, 2009, 2:33:42 PM4/29/09
to SIMILE Widgets
i am looking to improve the performance of my app for users with low
bandwidth connections (for example mobil devices). Compressing js and
css files with gzip is a good way to do that. Is there any way to do
that with the timeline files?

Jonas Wagner

unread,
Apr 29, 2009, 4:44:14 PM4/29/09
to simile-...@googlegroups.com
Hello Sebastian,

The timeline files are already minified if you use the bundle=true
option. Unzip the timeline_libraries.zip file to somewhere on your
webserver and put something like this in your html file:

> <script type="text/javascript">
> //<![CDATA[
>
> Timeline_ajax_url = "/javascripts/timeline_ajax/simile-ajax-api.js?bundle=true";
> Timeline_urlPrefix = "/javascripts/timeline_js/";
> Timeline_parameters = "bundle=true&defaultLocale=en";
>
> //]]>
> </script>
> <script src="/javascripts/timeline_js/timeline-api.js" type="text/javascript"></script>

If you want to zip it even more, I guess you'll have to configure that
in your web server, and the browser has to support gzip encodings, etc...

Cheers,
Jonas

larr...@yahoo.com

unread,
Apr 30, 2009, 9:10:05 PM4/30/09
to simile-...@googlegroups.com

Hi,

http supports gzip as a transport property. As Jonas says, you should be able to configure your webserver to gzip the js, css and your json or xml data files.

The browser will automagically expand the files before giving them to its js/html processor.

Regards,
Larry
Sent via BlackBerry from T-Mobile

-----Original Message-----
From: Jonas Wagner <j....@gmx.ch>

Date: Wed, 29 Apr 2009 22:44:14
To: <simile-...@googlegroups.com>
Subject: Re: Gzipped Timeline?
Reply all
Reply to author
Forward
0 new messages