Currently, the XSLT is applied in app.xqm, hence the page will only load after the content has completely been generated. For large texts (ULB DA: Augsburger Religionsfrieden, Darmstädter Tagblatt), this can take several seconds.
It might be better to load this via AJAX and reduce TTFB.
Additionally, this could be used to have some primitive pseudo-streaming: the text is generated on a by-page basis and every page is loaded consecutively (downside: a Ctrl-F search will only work after the last page has been processed; due to the usual overhead, the overall processing time will actually be longer than doing it in one big sweep).
Currently, the XSLT is applied in
app.xqm
, hence the page will only load after the content has completely been generated. For large texts (ULB DA: Augsburger Religionsfrieden, Darmstädter Tagblatt), this can take several seconds. It might be better to load this via AJAX and reduce TTFB.Additionally, this could be used to have some primitive pseudo-streaming: the text is generated on a by-page basis and every page is loaded consecutively (downside: a Ctrl-F search will only work after the last page has been processed; due to the usual overhead, the overall processing time will actually be longer than doing it in one big sweep).