domstack

Stack your dom nodes outside of the main DOM tree.

domstack

Stack your dom nodes outside of the main DOM tree.

with component:

$ component install bredele/domstack

with nodejs:

$ npm install domstack

Create a stack from a root dom element.

var Stack = require('domstack');
var stack = new Stack(document.body);

Add a node element into the stack.

stack.add('olivier', node);

A stacked node is appended to a document fragment. Since a fragment is in memory and not part of the main DOM tree, computing one of its children does not cause reflow of repaint and results in better performance.

Display a stacked node into the root dom element.

stack.show('olivier');
``
 
### get(name)
 
  Get a stacked node.
 
```js
stack.get('olivier');

MIT