Title: Disable all javascript
Last modified: August 19, 2016

---

# Disable all javascript

 *  [Nasul](https://wordpress.org/support/users/nasul/)
 * (@nasul)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/)
 * Is there any posibility to disable all the javascript in the teme? I use K2 1.1
   and in the head there are 2 scripts loaded (jquery 1.4.2 and k2 min).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1604885)
 * You can remove it manually from the theme (just edit it and remove ’em), but 
   I don’t know if the theme will work without it.
 * Why do you want it removed?
 *  Thread Starter [Nasul](https://wordpress.org/support/users/nasul/)
 * (@nasul)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1604906)
 * I want to remove the javascript because why load something if is not usefull?
   
   And page load times will decrease.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1604908)
 * Well. Logically k2min is being used by your theme K2 😉
 * And jQuery is called by other WordPress functions. They shouldn’t affect your
   load time that much.
 *  Thread Starter [Nasul](https://wordpress.org/support/users/nasul/)
 * (@nasul)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1605031)
 * I know, but I am a speed freak.
 * This code placed in functions.php can be used to disable all the scripts.
 * `remove_action( 'wp_print_scripts', array('K2', 'enqueue_scripts') );`
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1605041)
 * There is that. I suspect you’ll find out some features no longer work, though,
   so … good luck 🙂
 * (If you’re that much a speed freak, look into WP Super Cache, W3 Total Cache,
   and Minify as ways to speed things up without removing functionality.)
 *  Thread Starter [Nasul](https://wordpress.org/support/users/nasul/)
 * (@nasul)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1605042)
 * I used the remove action and all the features I need work. I use W3 Total Cache
   and it is good for minifind and other things but why keep jquery and other scripts
   in the head when I don’t need it?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1605051)
 * At that point, you may be better writing your own streamlined theme that omits
   all that stuff.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Disable all javascript’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 7 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/disable-all-javascript/#post-1605051)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
