Author: sergey.chernyshev
Description:
As I reported on the dev list earlier, SIMILE Timeline code was carried over as many files instead of the bundle (not sure if they added the bundle later then it was initially used).
Long term solution would be to incorporate their code as is separating all SMW specific code into SMW_timeline.js (or something like that) and have some one-line switch within JS or PHP configuration option to switch between easy to debug multi-file option and much faster bundled version.
As I remember Markus was going to ask people at SAIL to help with this.
Meanwhile, I made a simple workaround by just combining most of JS and CSS code for timeline (and minifying JS).
The result is one timeline-api.js (plus two for i10n which I didn't want to dig into) and one timeline.css both residing in skins/SimileTimeline/ folder. I renamed original timeline-api.js into timeline-api-debug.js and called combined, but uncompressed version timeline-api-uncompressed.js.
For minifying JS code, I used Douglas Crockford's JSmin (http://javascript.crockford.com/jsmin.html) as least intrusive minifier (later, I might re-minify it with YUI Compressor - http://developer.yahoo.com/yui/compressor/ which is supposed to be better and even less intrusive).
The resulting code is just 4 HTTP requests (which can potentially be converted to 2 if i10n code will be merged into main body of code) instead of 23 requests and just 25K (if gzipped).
Next step might be a Makefile with shell script to combine all that before checking into SVN, maybe be even combining all SMW's JS and CSS together.
Version: unspecified
Severity: minor