Why we do need wp_enqueue_script() function?
According to the Codex: wp_enqueue_scripts() links a script file to the generated page at the right time according to the script dependencies, if the script has not been already included and if all the dependencies have been registered. You could either link a script with a handle previously registered using the wp_register_script() function, or provide … Read more