Optimize frequently fired events(scroll, touchmove, resize) using requestAnimationFrame.
npm install event-optimize