Enqueue Script in WordPress
Your first snippet sets $in_footer to false so the the script will be added to the <head /> of your document. The second snippet sets $in_footer to true and so it will be added at the bottom of your document (usually just before </body>, but it depends on where wp_footer() is called in your theme). … Read more