On 23/09/2010 15:51, Ralf Eggert wrote:
Hi Mike,
thanks for your comments.
Where are you enabling Dojo - in a bootstrap?
I have a controller plugin for setting up the view. In the
dispatchLoopStartup() I have the following lines:
Zend_Dojo::enableView($view);
$view->dojo()->enable();
$view->dojo()->setDjConfigOption('parseOnLoad', false);
So, I am actually setting parseOnLoad to false. I added the line the
last days when I was fighting around these problems. I need this
otherwise the blank screens are back.
And yes, you are right, I see all the XHR stuff in Firebug. For example,
one page needs about 13 seconds to load, and the 70 requests for XHR use
11 seconds of this. This is really annoying for loading a page the first
time. If the page is loaded from the browser cache it is much quicker.
Assuming the way your personalised Dojo build is not the culprit, have
you tried moving your setDjConfigOption('parseOnLoad', false) into the
project bootstrap? I vividly recall that moving it into bootstrap in
this way caused a drastic reduction in colourful words and death threats
silently hurled at my computer monitor.
Incidentally, the issue was particularly important to me when developing
multi-level tab containers each lazy-loading upon a tab click to save on
initial load time. Also, if you are using Dojo debug settings then bear
in mind your page load time in Firebug will be substantially higher than
when set to off. In the tab container exercise it went from 17 secs to
about 230ms.