How to Enqueue Your Scripts Depending on Location
As you probably know the best way to load scripts in WordPress is to use the wp_enqueue_script() function. However the process for loading scripts is slightly different depending on where you’re calling the script from.
