Repository navigation
Commit 2bf4076
Load view and document metadata in parallel (#444)
* Load view and document metadata in parallel
The object labels (/sparql), the ontology object labels (/ns) and the
property labels (/ns) are all built from the results alone, so the view,
ontology-view and document-load chains now fire them together through
ldh:fire-load-set-parallel instead of one after another.
Driven on the local LTLOD stack with Playwright, serving a baseline and a
patched site SEF through page.route: the three requests start together,
the rendered content is unchanged, and the calendar pages finish their
block loading ~100-125 ms (4-5%) sooner; the homepage shows no difference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* A block load superseded by navigation reports nothing
A content block's load chain outlives its pane: going back or on while
the blocks are still loading replaces the pane, and the chain runs on
against a detached block. There it fails - key() has no containing
document (XTDE1270) - and ldh:promise-failure, handed the detached
content body, fell through to the alert() kept for dialogs closed while
their request was in flight.
ldh:block-load-failure passes the content body on only while it is still
in the page, checked when the failure arrives. Without a host
ldh:promise-failure only resets the cursor and the busy regions.
Loading the metadata in parallel made the race reliable: the results
table spec, which leaves for the root document and comes straight back,
failed on every attempt (UI-tests run 39172274618).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent d70ca2a commit 2bf4076
3 files changed
Lines changed: 29 additions & 36 deletions
File tree
- src/main/webapp/static/com/atomgraph/linkeddatahub/xsl
- client
- block
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
845 | 856 | | |
846 | 857 | | |
847 | 858 | | |
848 | 859 | | |
849 | 860 | | |
850 | 861 | | |
851 | 862 | | |
852 | | - | |
| 863 | + | |
853 | 864 | | |
854 | 865 | | |
855 | 866 | | |
| |||
1045 | 1056 | | |
1046 | 1057 | | |
1047 | 1058 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1055 | 1064 | | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | 1065 | | |
1061 | 1066 | | |
1062 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1023 | 1021 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | 1022 | | |
1029 | 1023 | | |
1030 | 1024 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
178 | 176 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
| |||
0 commit comments