onRender(node, cb) {
    if (!node.parentElement) {
      window.requestAnimationFrame(() => this.onRender(node, cb))
    } else {
      cb(node)
    }
  }
Do something when a specific dom element renders

@param {HTMLElement} node
@param {onRenderCallback} cb