Introducing Incremental DOM by Malte Ubl

In notebook:
Article Notes
Created at:
2016-02-05
Updated:
2016-02-05
Tags:
DOM JavaScript libraries
Introducing Incremental DOM — Google Developers — Mediumanother virtual dom, / low memory (less garbage c.) / open html tags / support classic templates

Incremental DOM is another virtual DOM library

Their aim, differentiating from other libraries:
  1. you can use classic templating languages such as mustache.js
  2. minimise memory use and garbage collection
  3. lets you use open html tags
Incremental DOM: because it walks the existing tree (that can be physical DOM tree and not a virtual "shadow" tree), mutates it, then applies the diff to the physical DOM. So it uses less memory (but not less CPU)

It breaks its API into pairs. One API to open a tag (elementOpen) and one to close (elementClose)