PolymerElements / paper-button

A button à la Material Design
https://www.webcomponents.org/element/PolymerElements/paper-button
138 stars 64 forks source link

Consider optimizing performance #48

Closed sorvell closed 8 years ago

sorvell commented 8 years ago

Since users often create many instances of this element, it will especially benefit from performance optimization. Consider lazily creating optional or user initiated functionality (e.g. paper-ripple), leveraging behaviors over composition (e.g. paper-material), streamlining styling, and eliminating or simplifying features (e.g. behaviors)

ebidel commented 8 years ago

Here are two immediate wins:

sorvell commented 8 years ago

Yup, but plan is to imperatively create paper-ripple. The dom-if is overkill in this case. Then paper-material can be decomposed to a behavior + css module. Preliminary study indicates this improves create/render time by 2x.