I’m converting a bootstrap html website into WordPress.
Now, all recommend using wp_enqueue_script() for registering javascript files. i.e.
function themeslug_enqueue_script() {
wp_enqueue_script( 'my-js', 'filename.js', false );
}
add_action( 'wp_enqueue_scripts', 'themeslug_enqueue_script' );
But I have some js files loading in the head and some other ones in the footer of the original html code.
I was going to use wp_head and wp_footer, is it ok to do so or better stick to wp_enqueue_script?