[clang-tools-extra] Clang doc async (PR #93276)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri May 24 10:11:40 PDT 2024
================
@@ -82,6 +82,7 @@ function createIndex(Index) {
document.addEventListener("DOMContentLoaded", function() {
// JsonIndex is a variable from another file that contains the index
// in JSON format
- var Index = JSON.parse(JsonIndex);
- createIndex(Index);
+ fetch("/index.json")
+ .then((response) => response.json())
+ .then((Index) => { createIndex(Index); });
----------------
ilovepi wrote:
Can you update this comment to reflect how this works?
https://github.com/llvm/llvm-project/pull/93276
More information about the cfe-commits
mailing list