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

Posted by Kniganapolke on Stack Overflow See other posts from Stack Overflow or by Kniganapolke
Published on 2010-05-20T13:29:58Z Indexed on 2010/05/21 2:10 UTC
Read the original article Hit count: 299

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about dojo

Related posts about parser