More Dojo Goodies : JavaScript Linker

More Dojo Goodies : JavaScript Linker

I couldn’t resist blogging this… it’s an awesome tool!

Go checkout svn co http://svn.dojotoolkit.org/dojo/trunk/tools/jslinker, read
the instructions at http://svn.dojotoolkit.org/dojo/trunk/tools/jslinker/docs/readme.txt and … use it!

So, let’s say i create a web app that makes use of dojo and of tacos.
Currently, tacos.js is 54kb and dojo is at least 150kb. So, how about reducing this? How about keeping only the functions and the files that are actually called from the html files?

Well, that’s exactly what the JavaScript Linker does.

For my first example, i run

java -Xms8m -Xmx200m -cp jsl.jar:sisc.jar:bcel.jar org.dojo.jsl.top.Top –verbose –prj jsl.prj –sources ../tests/test_tacos.html
and was left with a 2.3kb dojo.js and a 6.3kb tacos.js

Doesn’t this rock??? Thx dojo & Well done to everyone involved.

andyhot

One thought on “More Dojo Goodies : JavaScript Linker

  1. The current version does not show the full potential of this tool. This is still work in progress and has only been tested with only few Dojo test cases. I will be making lot of updates to the code in the coming weeks.

Comments are closed.

Read previous post:
9781590595961
Tapestry in press – Beginning POJOs

Tapestry in press - Beginning POJOs I recently came across Beginning POJOs: Lightweight Java Web Development Using Plain Old Java...

Close