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

perf(www): Change the way child items are hidden in the docs sidebar #23159

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

tesseralis
Copy link
Contributor

Description

Change the sidebar accordion to use JSX conditionals instead of display: none to hide child nodes.

Motivation

This makes the docs page more "snappy" when switching between pages (when the sidebar isn't fully expanded) since the page does not need to load the full sidebar hierarchy.

@tesseralis tesseralis requested review from fk and pieh April 16, 2020 01:40
@tesseralis tesseralis requested a review from a team as a code owner April 16, 2020 01:40
@tesseralis tesseralis changed the title perf(www): Change the way child items are hidden in the sidebar perf(www): Change the way child items are hidden in the docs sidebar Apr 16, 2020
Copy link
Contributor

@fk fk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 🙏 🙏

@pvdz pvdz merged commit 3d3b102 into master Apr 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the sidebar-display-perf branch April 16, 2020 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants