Custom build performance

View: New views
2 Messages — Rating Filter:   Alert me  

Custom build performance

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was wondering that if I include my custom build js file at the end of the body tag and add a dojo.addOnLoad (in HEAD) to parse things later then could I remove all the dojo.require calls entirely? I'm assuming that the build includes all the needed dependencies here. My problem is that I have dozens of repeated dojo.requires (each inside an inline script tag) due to the nature of the JSP tag files and I'm trying to reduce the perceived speed as much as I can (currently not that stellar, you know?)

Regards

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Custom build performance

by Dustin Machi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can include your dojo.js and customer layers as script tags right  
before </body> and still use parseOnLoad: true as far as I know.  The  
dojo.require()s aren't necessary if you have everything in your custom  
layer (but if you forgot something you'll end up with an error of  
course).

Dustin

On Aug 27, 2009, at 1:44 PM, Jose Noheda wrote:

> Hi,
>
> I was wondering that if I include my custom build js file at the end  
> of the body tag and add a dojo.addOnLoad (in HEAD) to parse things  
> later then could I remove all the dojo.require calls entirely? I'm  
> assuming that the build includes all the needed dependencies here.  
> My problem is that I have dozens of repeated dojo.requires (each  
> inside an inline script tag) due to the nature of the JSP tag files  
> and I'm trying to reduce the perceived speed as much as I can  
> (currently not that stellar, you know?)
>
> Regards
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest@...
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest