src/js/base/core/dom.js
function (node, preceding) {
            var next = preceding.nextSibling, parent = preceding.parentNode;
            if (next) {
                parent.insertBefore(node, next);
            } else {
                parent.appendChild(node);
            }
            return node;
        }
function (node, preceding) {
            var next = preceding.nextSibling, parent = preceding.parentNode;
            if (next) {
                parent.insertBefore(node, next);
            } else {
                parent.appendChild(node);
            }
            return node;
        }
function ( node , preceding ) { var next = preceding . nextSibling , parent = preceding . parentNode ; if ( next ) { parent . insertBefore ( node , next ) ; } else { parent . appendChild ( node ) ; } return node ; }
insert node after preceding

@param {Node} node
@param {Node} preceding - predicate function
insert node after preceding