OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 <script src="resources/async-block-helper.js"></script> |
| 7 <script> |
| 8 var test = async_test('With the async attribute, link element don\'t block the s
cript execution of following imports.'); |
| 9 |
| 10 function ready() { |
| 11 test.step(function() { |
| 12 assert_false(isImportLoaded('has-slow-script.html'), 'A script in sync i
mport has not to be excuted yet.'); |
| 13 assert_true(isImportLoaded('not-slow.html'), 'A script in following impo
rt is executed wihtout waiting slow script.'); |
| 14 test.done(); |
| 15 }); |
| 16 } |
| 17 </script> |
| 18 <link id="asyncLink" async rel="import" href="resources/has-slow-script.html"> |
| 19 <link id="followingLink" async rel="import" href="resources/not-slow.html" onloa
d="ready()"> |
| 20 </head> |
| 21 <body></body> |
| 22 </html> |
OLD | NEW |