SWFObject used YUI Compressor since then JS compressor have evolved for now I would go with either - [UglifyJS2](https://github.com/mishoo/UglifyJS2) - [GCC](https://github.com/google/closure-compiler)