-
Notifications
You must be signed in to change notification settings - Fork 34
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
should not be displayed #28
Conversation
📊 Lookin' good 👍 |
@@ -69,6 +69,10 @@ | |||
} | |||
|
|||
}, | |||
|
|||
attached: function() { | |||
this.style.display = 'none'; |
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.
could we add this as a :host
style, instead of via JS?
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.
ATM <iron-iconset-svg>
doesn't have a shadow root, so I didn't think I should add one. @cdata?
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.
word, I wonder if using created
instead of attached then might be better, just to shove this as early as possible in the life cycle of the elm, to prevent crazy weird style/height flicker
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.
👍 I think you're right that we might end up creating an unnecessary shadowRoot
. Alternatively you could also set hostAttributes
to include hidden
by default. This may be more expensive overall though..
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.
@cdata do y'all have a good way to measure "cost" yet?
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.
Not in a repeatable CI setting, no. We have gotten good mileage out of the Chrome timeline profiler though.
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.
Fixes #27 (see bug for repro)
Added two tests, look at them failing before the patch: