Select from following answers:- by using async attribute in script block

- by using asynchronous attribute in script block
- by using nondefer attribute in script block
- All Above
<script src="asyncMyJavaScript.js" async onload="GreetUser()"></script>
async - The script downloads asynchrnously while the page continue to parse.
In the above code snippet, the .js file will download asynchronously and when download complete, it will execute the GreetUser() function of the .js file.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator