Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / async-and-defer-script.html
blob29d5ddf38cbca5e4443ebc7d603bc1b14ce67ae9
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../js-test-resources/js-test.js"></script>
5 </head>
6 <body onload="debug('load');finishJSTest();">
7 Checks that the async attribute takes precendence over defer.
8 <div id="console"></div>
9 <script>
10 var jsTestIsAsync = true;
11 document.addEventListener("DOMContentLoaded", function() {
12 debug("DOMContentLoaded");
13 }, false);
14 </script>
15 <script defer async src="http://127.0.0.1:8000/misc/resources/slow-async-script.cgi"></script>
16 </body>
17 </html>