Yes, you should use wp_enqueue_script()
. The script will be loaded in the footer (action: wp_footer()
). Just once.
To inspect the order of available hooks, functions etc. per request try my plugin T5 WP Load Order.
Yes, you should use wp_enqueue_script()
. The script will be loaded in the footer (action: wp_footer()
). Just once.
To inspect the order of available hooks, functions etc. per request try my plugin T5 WP Load Order.