DEV Community

Discussion on: How to Embed JavaScript in Your HTML ??

Collapse
 
kevincodemaster profile image
Kevin Ochieng

You could also nest the script tag in the header tag with a defer attribute for the script to be loaded last

Collapse
 
hrushikesh41 profile image
Hrushikesh Kokardekar

Yes