in the link you sent, if you follow closely, you'll find this :
http://jonrobson.me.uk/static/development/TinyTiddly/tinytiddly.tar
It's v2.6.1
>
> 3) Would it make sense to also externalize all other plugins and to
> shrink them? Using what, preferably?
externalize: yes
shrink them: maybe
But if you externalize them (ex: mysql db, like in phptiddywiki), it
means size does not really matter (else than the loading time
required).
My 2 cents only. Hope it helps. I'm currently looking at using
tinytiddly with a mysql backend (what a coincidence!)
--
Christian
I did not check the history of the wiki indeed:
http://tiddlywiki.org/index.php?title=TinyTiddly&action=history
Sorry for the noise then. Maybe you can ask Jon how he did it ?
I used to have my own tinytiddly, but I lost the recipe.
Since I'll look at this again for my tinytiddly+mysql, I can keep you
posted (unless Jon answers first).
--
Christian
What is more funny is that it's not a tinytiddlywiki at all !! Packer
has not even been used...
I'll post my recipe here soon.
--
Christian
I'll do a separate thread for this. I'll explain about the
prerequisites. Currently I'm performing this experiment in Windows...
> On the other hand, I would love to hear you and Jon comment on
> "packer" (which?) and why he wouldn't use it or why you would.
I use packer3 (the web interface). Actually, it's better to
externalize the js first, then depending on your goals to decide or
not on the compression levels.
>
> Also, I would want to externalize the core as is included in the 2.4.3
> release of TinyTiddly ...so it would be nice if you could put
> instructions for that in your recipe as well. Thanks a lot!
This one will also be covered.
I'm actually trying to modify the original phptiddlywiki from Patrick
Curry (PMC) to upgrade it to php5, tw-2.6.1 with external js. Still a
few issues to iron... Another potential thread...
--
Christian
Managed to find some spare time.
Here are the updated instructions:
- download tiddlywiki 2.6.1 empty.html, jsmin, shrinksafe and a local
copy of packer3 (use google to gather the urls)
- externalize the 4 javascript files (jqueryarea.js jsarea.js
jsdeprecatedarea.js jslibarea.js) and modify your main html empty.html
accordingly to load these 4 external scripts
- step1: jmin (mostly whitespace and comment removal. tou can swap
step1 and step2 and gain maybe some extra space, since jmin and
shrinksafe have reduction common techniques around comments and
newlines)
jsmin.exe < jqueryarea.js > jqueryarea-1-jsmin.js
jsmin.exe < jsarea.js > jsarea-1-jsmin.js
jsmin.exe < jsdeprecatedarea.js > jsdeprecatedarea-1-jsmin.js
jsmin.exe < jslibarea.js > jslibarea-1-jsmin.js
- step2: shrinksafe (caution here, mostly around the special characters \uxxxx)
java -jar shrinksafe.jar -escape-unicode jqueryarea-1-jsmin.js >
jqueryarea-2-shrinksafe.js
java -jar shrinksafe.jar -escape-unicode jsarea-1-jsmin.js >
jsarea-2-shrinksafe.js
java -jar shrinksafe.jar -escape-unicode jsdeprecatedarea-1-jsmin.js >
jsdeprecatedarea-2-shrinksafe.js
java -jar shrinksafe.jar -escape-unicode jslibarea-1-jsmin.js >
jslibarea-2-shrinksafe.js
- step3: use packer3 web interface to pack each of the 4 files, rename
them as in empty.html and you're done.
Figures for tiddlywiki 2.6.1:
- original empty.html = 368091 bytes
- with externalized js:
empty.html = 24762 bytes
jqueryarea.js = 6219 bytes
jsarea.js = 269928 bytes
jsdeprecatedarea.js = 4103 bytes
jslibarea.js = 72350 bytes
- after 3 steps:
empty.html = 24762 bytes
jqueryarea.js = 2834 bytes
jsarea.js = 108476 bytes
jsdeprecatedarea.js = 2007 bytes
jslibarea.js = 51209 bytes
Tobias: I'll send you a 7-zip containing the final code for testing purposes.
I'll try to publish this with the whole git history/steps on my github
account soon.
--
Christian
It seems we did not use the same approach, right ?
I'm using 'the old method', compressing a 'wee' bit more (~90kb less)
--
Christian