This is pretty simply, and a needed thing for me sometimes. Despite I run from a lifeset of not including JS on a website, if I can skip it 🙂 I love performance
But this can't be done on advanced webpages sometimes, so here is a quick code so you can add script fast in theme functions without the need of a plugin
add_action('wp_head','woocommerce_js');
function woocommerce_js()
{ // break out of php ?>
<script>
SCRIPT GOES IN HERE
</script>
<?php } // break back into php
Liked this article? Please follow me on TwitterFollow @baysorensen