When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
The wp_register_script() Codex page literally says: A safe way of registering javascripts in WordPress for later use with wp_enqueue_script(). This means, if you want to register your scripts, but not directly load them in your pages, you can register the files once, and then load them when you need them. For example: You have a … Read more