[Yanel-dev] [Fwd: Asynchronous menu loading (experimental)]

Michael Wechner michael.wechner at wyona.com
Wed Aug 22 19:42:56 CEST 2007


Hi

I think what Andreas Hartmann did for Lenya re menu loading could also 
be very useful for Yanel (please see below)

Cheers

Michi

-------- Original Message --------
Subject: 	Asynchronous menu loading (experimental)
Date: 	Wed, 22 Aug 2007 18:23:02 +0200
From: 	Andreas Hartmann <andreas at apache.org>
Reply-To: 	dev at lenya.apache.org
To: 	dev at lenya.apache.org



Hi Lenya devs,

the load test and profiling sessions showed that the menubar generation
(especially the usecase precondition checks) have a significant
performance impact. It can certainly be optimized, but it will never be
as fast as the clean live page.

To provide a workaround (and to get my feet wet with Ajax) I implemented
a version which loads the menu asynchronously. If you want to give it a
try, replace

  cocoon://lenya-page/

with

  cocoon://modules/menubar/ajaxmenu/

in the publication sitemap and modules-core/usecase/usecase.xmap.
It has been tested only with Firefox yet.

ATM the whole Lenya header is loaded asynchronously. A further
improvement would be to load only the single menus on demand. This way,
the server load would be reduced to the necessary minimum. And the user
wouldn't even notice anything if she doesn't use the menu.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at lenya.apache.org
For additional commands, e-mail: dev-help at lenya.apache.org



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list