4 <script src=
"../../../resources/testharness.js"></script>
5 <script src=
"../../../resources/testharnessreport.js"></script>
6 <script src=
"resources/async-block-helper.js"></script>
8 var test
= async_test('With the async attribute, link element don\'t block the script execution of following imports.');
10 function readySync() {
11 test
.step(function() {
12 assert_false(isImportLoaded('has-slow-script.html'), 'A script in sync import has not to be excuted yet.');
13 assert_true(isImportLoaded('not-slow.html'), 'A script in following import is executed wihtout waiting slow script.');
17 function readyAsync() {
18 test
.step(function() {
19 assert_true(isImportLoaded('has-slow-script.html'), 'A script in sync import has not to be excuted yet.');
20 assert_true(isImportLoaded('not-slow.html'), 'A script in following import is executed wihtout waiting slow script.');
25 <link async
rel=
"import" href=
"resources/has-slow-script.html" onload=
"readyAsync()">
26 <link rel=
"import" href=
"resources/not-slow.html" onload=
"readySync()">