views:

93

answers:

1

I'm using carabiner for CodeIgniter which can minify all the javascript files it loads. Well, I have about 10 files that work fine, then when minified, they don't... I'm not sure exactly what doesn't work, there are no errors, just certain features that don't work. Is there any particular reason why minifying JavaScript would cause it to not work?

+3  A: 

You may want to try running JSLint on your Javascript code before you try to minimize it. JSLint might highlight some issues, which could allow you to minimize your code without error.

Or you may want to try another 'minification' tool.

Here are two articles I've found on 'A List Apart,' that may interest you, looking at the YUI Compressor.

"Better JavaScript Minification"
"JavaScript Minification Part II"

S.Jones