dariok / wdbplus

WDB-eXist
MIT License
9 stars 7 forks source link

Load text content of main via AJAX? #527

Open dariok opened 1 year ago

dariok commented 1 year ago

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).