Reputation: 1
I am desperately trying to minify + combine all my javascript files using a wordpress plugin. I have tried a few and the same problem happens on all of them when activated my front page slider (http://www.joellepoulos.com) and none of my portfolio images show up. I have tried deactivating every javascript that is being minified and the problem remains. It seems to happen when the plugins are activated even if the plugin isn't minifying any files. I cannot figure this out - my site is so slow right now due to loads of javascript files running and minifying them helps so much but this problem is killing me!
Upvotes: 0
Views: 155
Reputation: 57703
The code actually throws an Error:
Uncaught ReferenceError: twttr is not defined
It's probably looking for a variable declared in another script but the minifier has changed the name. Naive minifiers don't account for outside dependencies.
I can vouch for YUI Compressor or Google Closure Compiler. Here is an online version: http://refresh-sf.com/yui/
I also highly recommend you use YSlow. It gives great tips on how to optimize your website. Minifying is good but it's effect is greatly reduced if you need to load many small Javascript files. Work towards consolidating them into as few (large) files as possible.
Upvotes: 0