code: function checkParent( elem ) {
      // not needed if already has parent
      if ( elem.parentNode ) {
        return;
      }
      var fragment = document.createDocumentFragment();
      fragment.appendChild( elem );
    }
docs: ----- appendToFragment ----- //