My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Dhruv Vashist

2 comments

manish bhardwaj
manish bhardwaj
Jun 8, 2024

Is this same for both HEAD and BODY element?

script can be included in both HEAD and BODY element will it make any difference to add async and differ attribute in script if it is present in BODY element?

1
·
·1 reply
Dhruv Vashist
Dhruv Vashist
Author
·Jun 8, 2024

No, async and defer will work in the same way even if it is declared inside of the instead of the . The only thing is the placement of the

·