Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dom-helper

greenify1.5kApache 21.0.0

A super fast DOM helper lib

dom, helper, insertlater, removeall, removetoinsert

readme

dom-helper

A simple util lib for fast DOM operations.

removeToInsertLater(element)

Remove an element and provide a function that inserts it into its original position Recommended by the Google JS speed guide

@param element {Element} The element to be temporarily removed @return callback {Function} A function that inserts the element into its original position

removeAllChilds(element)

fastest possible way to destroy all sub nodes (aka childs)

@param element {DOM Node} The element for which all childs should be removed