parser-inserted-async-script.html (636B)
1 <!DOCTYPE html> 2 <title>Parser-inserted async script elements with "blocking=render" are render-blocking</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="support/test-render-blocking.js"></script> 6 7 <script id="async-script" async blocking="render" 8 src="support/dummy-1.js?pipe=trickle(d1)"> 9 </script> 10 11 <div>Some text</div> 12 13 <script> 14 const asyncScript = document.getElementById('async-script'); 15 test_render_blocking( 16 asyncScript, 17 () => assert_equals(window.dummy, 1), 18 'Parser-inserted render-blocking async script is evaluated'); 19 </script>