By Anonymous (not verified) on
When I enable 'compress javascript' at the performance settings page all javascript at my Drupal installation is broken (on all pages). Before caching, it works like expected.
I use drupal_add_js() in blocks and panes to include javascript. This seems to be the problem because I have no problems when I add the same file in my theme info file with a line like this scripts[] = script.js.
I couldn't find something that says compressing javascript doesn't include the javascript added by drupal_add_js() so I don't get this behavior. What could it be?
Comments
Most likely what has happened
Most likely what has happened is that one of the modules you were using had some bad formatting in it, and when all the files were aggregated, this error compounded down the whole file, killing all the javascript.
Use Firefox with the firebug panel (or Chrome with the developer panel) and load the page to find out where the error is.
Contact me to contract me for D7 -> D10/11 migrations.
No errors
Just checked on javascript errors in Firebug console: no errors found.
Can't really help without
Can't really help without code or preferably a link then.
Contact me to contract me for D7 -> D10/11 migrations.
Solved
Solved. See this topic.