code: function resize () {
      if (!running) {
        running = true
  
        if (window.requestAnimationFrame) {
          window.requestAnimationFrame(runCallbacks)
        } else {
          setTimeout(runCallbacks, 66)
        }
      }
    }
docs: fired on resize event