Skip to content

Instantly share code, notes, and snippets.

@akshaysasidrn
Created November 20, 2017 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshaysasidrn/75a80d1c682333aaadfdf671175161df to your computer and use it in GitHub Desktop.
Save akshaysasidrn/75a80d1c682333aaadfdf671175161df to your computer and use it in GitHub Desktop.

You can tell the browser how to execute the scripts. By default, browser runs the script immediately by pausing HTML parsing. Else you can specify async or defer with the script tag to either run script asynchronously or defer it until HTML is parsed.

<script src="script.js"></script>

<script async src="script.js"></script>

<script defer src="script.js"></script>

Script executions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment