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
Convert ha-menu-button to TS #2825
Conversation
|
||
// We are not going to use ShadowDOM as we're rendering a single element | ||
// without any CSS used. | ||
protected createRenderRoot(): Element | ShadowRoot { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this gain us some performance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, creation of a shadow root has some overhead, because it's an isolated environment. Although I would not be able to give any numbers. Back in our Polymer 1 days, the polyfill was faster than using native ShadowDOM 😱
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great after comments addressed
No description provided.