Meta: improve PR Preview, part 2 · whatwg/html@8d80ce1
whatwg
·
2026-06-23
·
via Recent Commits to html:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,10 +65,9 @@ function loadReferences(id, path, specURL) {
|
65 | 65 | dfnPanel.appendChild(p); |
66 | 66 | if (!dfnMapDone) { |
67 | 67 | p.textContent = 'Loading cross-references…'; |
68 | | -fetch('/xrefs.json') |
69 | | -.then(response => response.json()) |
70 | | -.then(data => { |
71 | | -dfnMap = data; |
| 68 | +import('./xrefs.json', { with: { type: 'json' } }) |
| 69 | +.then(module => { |
| 70 | +dfnMap = module.default; |
72 | 71 | dfnMapDone = true; |
73 | 72 | if (dfnPanel) { |
74 | 73 | fillInReferences(id); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。