Search This Blog

Thursday, May 20, 2010

Why does dojo parsing time depend on css and images availability?

Programmer Question

I have been profiling javascript on my page that uses dojo widgets. I don't use explicit parsing - the parser runs on page load.



What I noticed is that if I clear browser cache before refreshing the page, dojo parsing takes much more time than if all the files are already cached.



Note that we build all the required dojo modules into a layer (a single file), so we don't lazy-load any js files.



I wonder if dojo parsing process depends on images and css resources, as far as I know it only instantiates widgets and injects dom nodes.



Do you have any ideas why dojo parser runs longer (2-3 times longer in my case) when the cache is cleared?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails