On 12/17/05, Paul Cantrell <[EMAIL PROTECTED]> wrote:
 though making clients download
> 200kb of Javascript and then reparse it with every new page is
> certainly not desirable!
>
So one more reason to keep your entire application in a single page ,
aproach which I seem to be the only one advocating ...
> 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.
76 k is still not much , but should be still unacceptable for a
lighweight web page that needs to quickly posts a simple form through
ajax .
+ 1 on the ideea that maybe Tacos should provide a non dojo way of
dooing this , since the code for posting a form through Ajax shouldn't
take more than 2 - 3 kb and on  top of that curently it looks like
posts can only be done through the IFrame which makes an Ajax post
seem less Ajax as it makes a clicking noise and it moves the loading
icon on the web browser .

untill then thogh , if you only need an ajax form posted , maybe look
at XTile ? that requires you to write javaScript , and last time i
tried it it was a mess ( heard it's in the contrib lib now so
hopefully it's stable ) , it also doesn't allow the other cool things
that Tacos does with a form , saving form data when back button is
used or allowing you to use the check if a dirty write was done on the
form , but it should work and it should be 70 times smaller for that
one purpose

>
> 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
>


-------------------------------------------------------
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_idv37&alloc_id865&op=click
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to