Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/interact/scripted/async-01.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
<title>async on script</title>
<metadata>
</metadata>
<h:meta name="timeout" content="long"/>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<script>
let t = async_test("An async script does not block the parser while downloading");
let results = [];
t.step_timeout(function() {
assert_equals(JSON.stringify(results), '["2","1"]')
t.done();
}, 4000);
function log(text) {
results.push(text);
}
</script>
<script href="log.py?sec=3&id=1" async="true"></script>
<script>
log('2');
</script>
</svg>