Skip to content

[rustdoc] Only generate search DOM elements if the search is actually needed - #160639

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
GuillaumeGomez:search-dom
Aug 20, 2026
Merged

rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
GuillaumeGomez:search-dom

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

I realized that we were generating the search DOM elements (everything contained into #search) all the times, even when there is no search query parameters in the URL. That seems unnecessary so I reworked the JS a bit to remove that.

r? @lolbinarycat

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustdoc-js Area: Rustdoc's JS front-end S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants