What is async attribute in script tag in javascript?

What is async attribute in script tag in javascript? <script src=”test.js” async></script> If async attribute is present in script tag then script is executed asynchronously. async attribute is a Boolean attribute. What is the difference between async and defer? If async is present the file gets downloaded asynchronously and then executed as soon as it’s […]

What is async attribute in script tag in javascript? Read More »