The DocumentTreeMacro currently performs ajax requests for each opened node. This is particularly true with a first implementation of XWIKI-20528: each level that needs to be expanded triggers a request. It would be interesting to allow getting an entire hierarchy including children nodes at once, without performing more requests to get children. |