Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 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.

2 Answers 2

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.

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

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.