On Tue, Sep 7, 2010 at 2:16 PM, Tobias Beer <[email protected]> wrote:
> Hi Christian,
>
> Looking forward to the other thread! Be so kind as to leave a pointer
> to it here. But, take your time. Better have a well laid out plan
> (possibly with deficiencies) than some quick fix that is hard to re-
> engineer. On the other hand, you could always use tiddlywiki.org to
> draft and modify said instructions... so it'd be much more of a
> collaborative approach with intermediate progress well visible while
> the discussion would concentrate on things to discuss instead of
> laying down the whole concept.
>
> Tobias.
>

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

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to