-- Php (Absolom) <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 November 2008, 05:08 PM +0100):
> I am using Dojo with sevarals input form, and before the view appear, it can
> take 5 seconds, even in local...
>
> When I desactivate Dojo, it really quick.
>
> When online,
>
> Any idea on how I could improve performance ?
The speed has to do with the fact that Dojo is pulling in resources from
the server on-demand; it cannot render the various dijits until the
resources are present.
The answer to this is twofold. First, make sure that you have
appropriate expires headers setup for your static (js, css, html)
resources so that the browser can cache them. Second, when you're ready
to go to production, create a custom dojo build. This will significantly
speed up the UI, as all resources will be loaded in a single file.
I've performed a webinar showing this at:
http://www.zend.com/webinars/framework
and also blogged about it. Creating the build is unintuitive at first,
but once you grasp how it works and have a build in place, the results
are nothing short of amazing.
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/