Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: dedup search form HTML #124738

Merged
merged 2 commits into from
May 7, 2024

Commits on May 5, 2024

  1. rustdoc: dedup search form HTML

    This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because
    
    - the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank
    - it requires very little HTML, so it's a real win in size
    
    [parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token
    
    This shrinks the standard library by about 60MiB, by my test.
    notriddle committed May 5, 2024
    Configuration menu
    Copy the full SHA
    eeb59f1 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    9262816 View commit details
    Browse the repository at this point in the history