Theoritically - Each node may contain code to represent the node url. For all current nodes follow the function (present in all inherited class for nodes) to generated URI.
So - indirectly it relies on the individual node code.
Agree.
That was the reason, we load them only when first parent node (in some cases grand parent node) is loaded.
We're relying on the third party library jquery.acitree for tree operations.
Most operations can be done asynchronous. But - url generation for individual node is done using callbacks, which can not work in asynchronous mode.
I am thinking of using the 'require' function within that function, when that node type is not present in the application at that point of time. Though - I am still not sure, wheather 'require' works that way, or not.
-- Thanks, Ashesh