Right now I am using a very simple function to move the javascript of WordPress to the footer:
function move_javascripts() {
remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );
add_action( 'wp_footer', 'wp_enqueue_scripts', 5 );
}
The problem though is that this code seems to bring all the "scripts" to the footer, even the CSS... I've tried to find a way to move only the .js part but I can't find any...
So is there some way to only target the javascripts and move them to the footer without the CSS?