2

In my project I've used quite a few minified scripts to improve performance.

However, amongst these scripts were quite a few un-minified ones too. Is it ok to use SquishIt to minify and bundle already minified scripts? Is it in any way dangerous for the minifier to process already minified code?

jaffa
  • 26,770
  • 50
  • 178
  • 289
  • 1
    You should probably run a few tests just to make sure that your minifier does not accidentally increase the size of an already minified script. Other than that, a minified script is just valid javascript so a good minifier should have no trouble with it. – jfriend00 Jan 04 '12 at 17:15

1 Answers1

1

Minified javascript is still valid javascript, a minifier should have no issues passing minified code through it's parser.

bevacqua
  • 47,502
  • 56
  • 171
  • 285