Which action to hook wp_enqueue_script to? wp_head or wp_enqueue_scripts? [duplicate]
This question already has an answer here: Closed 9 years ago. Possible Duplicate: Where is the right place to register/enqueue scripts & styles According to wp_enqueue_script() documentation in Codex, it seems that one should hook wp_enqueue_script() calls to the wp_enqueue_scripts action instead of wp_head. That contradicts all the tutorials I have ever read on the … Read more