Improve minim.js performance