Open ebidel opened 9 years ago
@ebidel another performance issue I came across today (this seems a good issue to mention it)...
I'm seeing long frames on tap of a tab, around 150-200ms. The reason is because _tabChanged
calls getBoundingClientRect
a few times and forces layout.
When noBar
is set to true, all we do is hide the bar using a hidden
class. We should also be skipping this entire block of logic (in _tabChanged
) so we don't cause such long frames for no reason.
Consider lazily creating optional or user initiated functionality (e.g. scrollable left/right paper-icon-buttons). Similar to what paper-tab is doing for the ripple.
https://github.com/PolymerElements/paper-tabs/blob/master/paper-tab.html#L109-L111