You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2007/10/19 20:15:50 UTC

Re: [struts] How to improve dojo performance in Struts 2.0.9

Martin Gainty wrote:
> I found the error with reference to missing src.js from DOJO release-0.4.2
> go to base dojo.js located at
> $CATALINA_HOME\webapps\struts2-showcase\struts\dojo\dojo.js
> comment out the _4d join line (as illustrated here)
> /*_4b=_4d.join("/")+".js";*/

That line appears twice in that file...

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [struts] How to improve dojo performance in Struts 2.0.9

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
I didn't notice any of these issues with the release-0.42 tag myself. 
The line "_4b=_4d.join("/")+".js";" is only present once in my compiled 
dojo.js file.

Martin, dojo.js is compressed by shortening variable names and stripping 
out comments and whitespace.  Use dojo.js.uncompressed.js to follow how 
it works if you're interested. It includes the human-readable variable 
names.

Note that the Struts 2.1 dojo plugin uses dojo 0.43.  None of the tags 
are intended to be compatible with dojo 0.9.

Martin Gainty wrote:
> (Its The last entry that I commented)
> Im trying to gain an undertstanding of dojo's architecture so those us from
> OO world can reference
> dojo.srcfilename =
>
> instead of
> _4b =
>
> in the javascript source
>
> (I have noticed a significant number of deltas in the latest 0.9 Dojo
> release from the the original 0.42 base..)
>
> If you want to follow along download firefox
> http://www.mozilla.com/en-US/firefox/
> and load in the firebug plugin
> https://addons.mozilla.org/en-US/firefox/addon/1843
> click on Tools/Firebug
>
> Thanks Dale
> M--
> ----- Original Message -----
> From: "Dale Newfield" <Da...@Newfield.org>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Friday, October 19, 2007 2:15 PM
> Subject: Re: [struts] How to improve dojo performance in Struts 2.0.9
>
>
>   
>> Martin Gainty wrote:
>>     
>>> I found the error with reference to missing src.js from DOJO
>>>       
> release-0.4.2
>   
>>> go to base dojo.js located at
>>> $CATALINA_HOME\webapps\struts2-showcase\struts\dojo\dojo.js
>>> comment out the _4d join line (as illustrated here)
>>> /*_4b=_4d.join("/")+".js";*/
>>>       
>> That line appears twice in that file...
>>
>> -Dale
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org