Hi !
I'm trying to make some optimisations with javascript's files
First I prefer to user Google Api for jquery :
// smart jquery inclusion
// & move javascript to footer
if (!is_admin()) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false );
wp_enqueue_script( 'jquery' );
}
Second, and it's my problem, i want to move others files (hoverIntent, superfish, ...) in wp_footer().
I've this code but i don't know how to use it with the thematic_head_scripts()...
remove_action( 'wp_head', 'wp_print_scripts' );
remove_action( 'wp_head', 'wp_print_head_scripts', 9 );
remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );
add_action( 'wp_footer', 'wp_print_scripts', 5 );
add_action( 'wp_footer', 'wp_enqueue_scripts', 5 );
add_action( 'wp_footer', 'wp_print_head_scripts', 5 );
Thks