incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: Javascript additions
Date Sat, 05 Apr 2008 19:10:45 GMT

I guess the question is if there are any refactorings that we could  
do now?  Something that will end up in ActionBeans in 3.0?

/Janne

On 5 Apr 2008, at 20:53, Andrew Jaquith wrote:
> This is a key reason I want to start using Stripes... Will force  
> some refactoring...
>
> On Apr 5, 2008, at 9:19, Janne Jalkanen <Janne.Jalkanen@ecyrd.com>  
> wrote:
>
>> Folks,
>>
>> I'm getting a bit worried about all the Javascript we have in the  
>> current template.  First of all, it's quite a lot of stuff to send  
>> around (several tens of kilobytes, even when compressed); and  
>> second, it's taking quite a lot of processing time, as the DOM  
>> tree gets walked quite often.  It is for example choking my phone  
>> browser pretty thoroughly, and also taking quite a lot of memory.
>>
>> Also, it relies quite a lot on the default template and default  
>> editor, which might make it a bit complicated for people to add  
>> the additional stuff to other templates or editors.
>>
>> So, the question is: what kind of functionality we should and  
>> could move to the back-end?  I'm thinking of common tasks, some  
>> processing of the DOM tree (which could take advantage of the DOM  
>> tree caching that we have), and in general things that have been  
>> found to be good and should be shared across all templates and  
>> editors.
>>
>> Also, the advantage would be that if it were done in Java in the  
>> back-end, it would make it easier for people to contribute to.   
>> I'll have to confess that a lot of the JS stuff is going above my  
>> head, so I can't really contribute - I fear that I break  
>> something.  The fact that we don't have an unit test suite for the  
>> JS worries me, too.
>>
>> Any suggestions?  Dirk, you know the stuff better than anyone  
>> else.  Do you have any suggestions on the stuff that we should  
>> start working on transferring?
>>
>> /Janne


Mime
View raw message