Why does dojo parsing time depend on css and images availability?
- by Kniganapolke
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?