Skip to content

Only add menu list to DOM if menu is visible#402

Merged
henningmu merged 2 commits intodevfrom
henningmu/conditional-menu
Dec 2, 2020
Merged

Only add menu list to DOM if menu is visible#402
henningmu merged 2 commits intodevfrom
henningmu/conditional-menu

Conversation

@henningmu
Copy link
Contributor

Short description

We've noticed some performance problems in Twist on large conversations where a lot of message would each render their full menu list into the DOM only to hide it until it's accessed. This PR should circumvent this by only rendering the menu list once the menu is opened.

It's enough to review 86efa27, the other commit is the result of bumping the version, updating the changelog and building assets

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)
  • Executed npm run validate and made sure no errors / warnings were shown
  • Described changes in CHANGELOG.md
  • Bumped version in package.json
  • Updated all static build artifacts (npm run build-all)

Versioning

patch, see CHANGELOG update

@henningmu henningmu self-assigned this Dec 1, 2020
@henningmu
Copy link
Contributor Author

CodeQL fails because of an inefficient regex in the vendor bundle of storybook 🙃 going to disable it another PR

Copy link
Contributor

@gnapse gnapse left a comment

Choose a reason for hiding this comment

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

Disclaimer: haven't tried it. But looks good.

@henningmu henningmu merged commit edbf30b into dev Dec 2, 2020
@henningmu henningmu deleted the henningmu/conditional-menu branch December 2, 2020 07:11
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.

2 participants