polymer-native icon indicating copy to clipboard operation
polymer-native copied to clipboard

Minimize amount of data sent from browser to native to instantiate component

Open PixelsCommander opened this issue 9 years ago • 0 comments

Currently JS do getComputedStyle object and sends all 200 keys object to native app. Which is cool because all CSS properties are available there. But this also is a bottleneck for instantiating components and creates some lag.

We should create configurable list of CSS properties which should be transmitted over JS -> Native bridge.

Preferred way of doing this is adding PNBaseElement.getStylesForNative method. Which should be called from PNUtils.getElementProperties instead of window.getComputedStyle(element);

PixelsCommander avatar May 09 '16 11:05 PixelsCommander