OK, so I should have read the dojo docs: with the kitchen sink build,
you can include *only* dojo.js and not the huge "src" tree. That at
least helps the CVS bloat problem -- though making clients download
200kb of Javascript and then reparse it with every new page is
certainly not desirable!
After some experimentation, I found that the Ajax components work
just fine (at least as I'm using them) with a dojo build including
only these modules:
"dojo.io.IO",
"dojo.io.BrowserIO",
"dojo.widget.Manager",
"dojo.fx.html"
That brings the size of dojo.js down do 136kb.
The real kicker, however, is dojo.fx.html: without it, dojo.js drops
to 76k. So it's nearly doubling the size of the dojo include ... and
*it doesn't get used*! Since I'm not using any effects on my Ajax
calls, if I just manually append this to the end of my dojo.js:
dojo.provide("dojo.fx.html");
...everything works nicely. So Tacos could cut the Javascript burden
in half just by not including this module until it's needed.
For those wondering how to build the lightweight dojo.js:
Get dojo source via svn.
Create profiles/tacos_ajax.profile.js, and put in it the follow text:
var dependencies = [
"dojo.io.IO",
"dojo.io.BrowserIO",
"dojo.widget.Manager",
];
load("getDependencyList.js");
Build dojo with this command line:
ant -Ddocless=true -Dprofile=tacos_ajax release
Append this line to the end of release/dojo/dojo.js:
dojo.provide("dojo.fx.html");
Copy dojo.js and iframe_history.html into the appropriate place in
your project.
Cheers,
Paul
On Dec 16, 2005, at 6:48 PM, Dennis Fleurbaaij wrote:
Paul,
Interesting note you make there. Maybe Tacos should indeed come
with the different versions of the dojo toolkit and load only the
applicable version at run time. This should involve building some
kind of dependancy systems, but as Tacos is now really centering
around dojo we'll probable see the question popping up more often.
I think that this would really be a cool feature for beta 1. It
would at the very least remove one of main arguments against Tacos,
which is the massive javascript loading and downloading. Just my
$0.02.
Kind regards,
Dennis Fleurbaaij
----- Original Message -----
From: Paul Cantrell
To: [email protected]
Sent: Saturday, December 17, 2005 12:21 AM
Subject: Re: [Tacos-devel] Any alternatives to the bloated kitchen
sink dojo?
Maybe I didn't make it sufficiently clear, but I *did* try one of
their prebuilt packages -- the "ajax" distribution -- and it didn't
work.
The issue seems to be that the tacos components require a bunch of
dojo packages like dojo.fx.html and dojo.widgets, even if I'm not
actually doing any effects.
Is there a way to manage or disable these dependencies...?
Cheers,
Paul
On Dec 16, 2005, at 4:46 PM, Jesse Kuhnert wrote:
You'll have to probably checkout dojo from subversion, or try one
of their pre-built packages. It's not very hard to do, but does
require a little bit of intellectual investment. (Mainly just
passing the right command-line arguments to their ant build
script, it's pretty easy if you look at the ant build file or help
options).
I haven't sat down and made a tacos only dojo build yet, but I
hope to soon. Dojo has plenty of documentation on this in their
wiki already I think though. http://dojo.jot.com
On 12/16/05, Paul Cantrell <[EMAIL PROTECTED]> wrote:Dojo is
massive. It slows down page load/rendering time, and
drastically increases the size of my app.
I'm using AjaxDirectLink and AjaxForm. That's it. I don't need (or
want) any visual effects, much less the fancy client-side word
processor and self-cleaning toaster oven functionality that comes
with Dojo. I mean, it's all impressive, but I don't need it. Just
Ajax.
The Tacos docs imply that I may be able to use a lighterweight
distribution of Dojo, or even another library altogether through
Hivemind config. However, the docs don't explain how to do this. Just
dropping in the "Ajax" distribution of dojo doesn't work....
Anybody tried this? Any hope for keeping my app lean and mean?
Cheers,
Paul
_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net
_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel