Last active
August 29, 2015 14:02
-
-
Save sjmiles/38d2dd36e1c6ad73d795 to your computer and use it in GitHub Desktop.
async-import problem (?)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.html | |
<!doctype html> | |
<link href="sync-import.html" rel="import"> | |
<link async href="async-import.html" rel="import"> | |
<script> | |
if (window.asyncImportHasExecuted) { | |
alert('derp: async-import executed before body script'); | |
} | |
</script> | |
// async-import.html | |
<script> | |
window.asyncImportHasExecuted = true; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment