PolymerElements / paper-tabs

Material Design tabs
https://www.webcomponents.org/element/PolymerElements/paper-tabs
65 stars 52 forks source link

Perf: performance optimzations #56

Open ebidel opened 9 years ago

ebidel commented 9 years ago

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

43081j commented 8 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.