dom-helper

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i dom-helper

      Weekly Downloads

      51

      Version

      1.0.0

      License

      Apache 2

      Last publish

      Collaborators

      • greenify