It is quite interesting how you implemented the Info and Facet data generation, using a kind of caching (here https://github.com/i4meta/BaseX-Perspective/blob/master/deploy/webapp/restxq/baseX-admin-console.xqm#L66)
Nothing wrong here and it reduces the page load, but I would move this at the beginning of the function as it does not output anything and also the JavaScript comment above will not make much sense in the resulting HTML source code. Should be a XQuery comment instead, I guess.
It is quite interesting how you implemented the Info and Facet data generation, using a kind of caching (here https://github.com/i4meta/BaseX-Perspective/blob/master/deploy/webapp/restxq/baseX-admin-console.xqm#L66)
Nothing wrong here and it reduces the page load, but I would move this at the beginning of the function as it does not output anything and also the JavaScript comment above will not make much sense in the resulting HTML source code. Should be a XQuery comment instead, I guess.