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

Convert ha-menu-button to TS #2825

Merged
merged 3 commits into from Feb 25, 2019
Merged

Convert ha-menu-button to TS #2825

merged 3 commits into from Feb 25, 2019

Conversation

balloob
Copy link
Member

@balloob balloob commented Feb 23, 2019

No description provided.


// We are not going to use ShadowDOM as we're rendering a single element
// without any CSS used.
protected createRenderRoot(): Element | ShadowRoot {
Copy link
Member

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?

Copy link
Member Author

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 😱

Copy link
Member

@iantrich iantrich left a 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

@balloob balloob merged commit 3e28b6f into dev Feb 25, 2019
@delete-merged-branch delete-merged-branch bot deleted the ts-ha-menu-button branch February 25, 2019 19:53
@ghost ghost removed the in progress label Feb 25, 2019
@balloob balloob mentioned this pull request Feb 28, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants