polymer-native
polymer-native copied to clipboard
Minimize amount of data sent from browser to native to instantiate component
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);