You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dylan-DPC-zz opened this issue
Apr 16, 2020
· 7 comments
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
It might help to convert search-index.js into a plain JSON file. I'm pretty sure that JSON.parse is significantly faster than trying to compile and execute JavaScript code. Originally posted by @ollie27 in #56545 (comment)
Opening this issue to gain traction so that someone can work on it (Ready to mentor if possible)
It's easy enough to generate a JSON file instead of a JavaScript file, but how do we want to load the JSON file? I'm not familiar with how the search works: can we request the JSON via XMLHttpRequest and then call addSearchOptions and initSearch asynchronously? We could also embed the JSON in the HTML via a data block, but that would add the cost of the search index to the initial page load.
Arf sorry @euclio, didn't see this issue so I commented on the other one... Even though I did it, it'd be awesome if you took a look at the PR: #71250 :)
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Opening this issue to gain traction so that someone can work on it (Ready to mentor if possible)
cc @GuillaumeGomez
This issue has been assigned to @euclio via this comment.
The text was updated successfully, but these errors were encountered: