Last modified: 2013-07-24 13:08:24 UTC
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.
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.
Created attachment 4533 [details]
Tarball with combined JS (also minified) and CSS, plus old JS and combined JS (in pre-minified state)
Created attachment 4624 [details]
A set of scripts to compress timeline code
It must be ungzipped into extensions/SemanticMediaWiki/skins/SimileTimeline folder.
will do compression
will return the original state.
Re-assign to extension developer for triage/comments.
Unfortunately, my patch doesn't work on latest version.
I also tried to plug Simile's latest version of the Timeline, but it didn't work as is. I think it's worth switching to their latest version (and link it in SVN - they have bundled code and many code fixes, I believe.