parser-blocking-script.html (658B)
1 <!DOCTYPE html> 2 <title>Parser-blocking script elements are implicitly 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> 8 // Add some renderable content before parser inserts body 9 document.documentElement.appendChild(document.createTextNode('text')); 10 11 // Test must be setup before the parser-blocking script 12 test_render_blocking( 13 () => assert_equals(window.dummy, 1), 14 'Parser-blocking script is evaluated'); 15 </script> 16 17 <script src="support/dummy-1.js?pipe=trickle(d1)"></script> 18 19 <div>Some more text</div>