WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a page outside my WP network install (following this info from css-tricks)

The output of which is used for a Facebook business page tab as a Facebook app.

It is working just fine, however I use W3 Total Cache on the site and noticed the output contains redundant (in this instance) minified JS files, is there a way to stop The W3 Total Cache plugin from hooking in & including these files?

The output is minified, which is a good thing so ideally i'd like to keep the minified output without the js files as they are not required.

Any help, tips or links appreciated, thanks in advance,

Aaron :)

share|improve this question

closed as off-topic by Johannes Pille, Pieter Goosen, cybmeta, anu, birgire Nov 12 '14 at 17:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

You can add DONOTMINIFY define statement to this page to disable it or switch to manual minify mode where this template has no settings.

share|improve this answer

If I understand you want to kleep the minified CSS that W3 give, but not the JS?

To do this add this where you wp_head runs.

remove_action('wp_head', 'wp_print_scripts');
remove_action('wp_head', 'wp_print_head_scripts', 9);
remove_action('wp_head', 'wp_enqueue_scripts', 1);

This should remove all JS wich W3 prints.
It will remove ALL JS which is registered with wp_enqueue_script

*not tested

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.