Skip to content

Instantly share code, notes, and snippets.

@ghostCoder
Created May 2, 2018 23:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghostCoder/f49d8e66cefc1e588269d129932325a8 to your computer and use it in GitHub Desktop.
Save ghostCoder/f49d8e66cefc1e588269d129932325a8 to your computer and use it in GitHub Desktop.
<!-- executed third -->
<script type="module">
console.log("Inline module!");
</script>
<!-- executed first -->
<script src="main.js"></script>
<!-- executed second -->
<script defer>
console.log("Inline script!");
</script>
<!-- executed fourth -->
<script defer src="main.js"></script>
<!-- executed as soon as downloaded -->
<script async type="module">
import {log} from './main.js';
log("Inline module!");
</script>
<!-- executed as soon as downloaded -->
<script async type="module" src="main.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment