richardanaya / webblock

The simplest way to make expressive and powerful web components
MIT License
30 stars 0 forks source link

What is polymer's approach to performant DOM? #1

Closed devinivy closed 8 years ago

devinivy commented 8 years ago

In your readme it says,

Polymer... tries to re-implement it's own way of "how do I update my dom nodes quickly" (virtual dom) when other more popular and suitable ways exist

Could you summarize the approach Polymer takes to performant DOM? I always thought it was simply that it performs minimal changes to the actual DOM by getting the programmer to describe specific changes to component properties (using el.set(), el.splice(), el.push()). This isn't really akin to virtual DOM from my point of view, so I imagine there's something else at play that I hadn't picked-up on.

richardanaya commented 8 years ago

To be honest, I don't know the deep details. They have some observer system that underlies everything and connects observable attributes to parts of the dom.