paper-tabs icon indicating copy to clipboard operation
paper-tabs copied to clipboard

Perf: performance optimzations

Open ebidel opened this issue 10 years ago • 1 comments

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

ebidel avatar Sep 04 '15 19:09 ebidel

@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.

43081j avatar Sep 14 '16 14:09 43081j