Minify Javascripts
Swift Performance will use JSMin to minify javascript files locally. It won’t produce the smallest script, however it is fail-safe and highly compatible.


Minify with API
Some scripts are not fully valid, but still operational (eg: missing semicolon). These scripts can cause issues when you minify them locally. If you use the API for script minify it can fix these errors, also it has better compress ratio. It can slowdown a bit the optimization, but is recommended to use it.