Prefetch subpages in advance #1158
Labels
🔨 enhancement
This improves an existing feature
⁉️ prio: low
Not urgent, can be resolved in the distant future.
Milestone
Motivation
In PR #1149, we introduced the dynamic fetching of subpages in the page tree. Everytime the child pages of a parent page are expanded, an ajax request is performed to retrieve the result from the server, which causes the expansion to take a small loading time:
Proposed Solution
It would be cool if this delay could be reduced, e.g. by automatically loading the subpages before the expansion button is clicked (but after the rest of the root pages are rendered completely, it shouldn't slow down the loading time of the initial page tree). We could recursively walk the tree completely or only load n+1 levels depending on which pages are currently expanded.
The subpages should then expand instantly after the button is clicked:
Alternatives
Additional Context
There are two tickets that depend on this issue:
The text was updated successfully, but these errors were encountered: