[Yanel-dev] Loading yanel toolbar menus asynchronously

Michael Wechner michael.wechner at wyona.com
Wed Apr 29 00:05:53 CEST 2009


Guillaume Déflache schrieb:
> Michael Wechner schrieb:
>> I have a toolbar sub-menu which does not scale well for whatever 
>> reason and it is hard to improve, and hence
>
> I guess if the menus are so big that it becomes a performance problem, 

this could be one problem, but in my case it's not about becoming big, 
but that some pre-condition checks need to be done (access control, 
etc.) which can take some while
depending on the setup
> they also probably are a usability problem as well, which no 
> optimisation would solve anyway!
> Unless it's a "combinatory explosion" problem, that you have 10 menu 
> entries, each having 10 menu entries, each of thoise having 10, etc. 
> (like what probably happens now to a lesser extent in Yanel with the 
> revisions submenu) Is that it?

in the case of the revisions submenus the workflow conditions need to be 
checked for example, and this can contain all kind of checks and hence 
might take some seconds.

You know it's not about minutes, but I think even 5 seconds are too long 
nowadays.
>
>> it would nice if one could load specific toolbar menus 
>> asynchronously. I mean the menu is only actually loaded if
>> one clicks on it.
>>
>> Any idea how we could best implement this? I guess it needs two parts:
>>
>> - Client side javascript
>> - Server side API for retrieving menu content
>>
>> WDYT?
>
> Makes sense. Might also be the occasion to also think about I18N and 
> Java API (we would only really need a ReSTy HTTP API for your current 
> problem) for the menus.

maybe we can workout some proposal. It doesn't mean we have to implement 
it right away, but at least write down our ideas and keep it in mind for 
the beginning.

Cheers

Michi



More information about the Yanel-development mailing list