learned something new today! thnx! But:
can you explain for newbies like me the why in "specifying the script tag at the end of the body tag but that's not very efficient"
Thank you for sharing your feedback! By specifying the script at the end of the body tag, the script will be loaded and executed at the end. You can optimize the fetching of scripts while HTML is parsing by specifying async and defer and also control when they should run.