remove-attr-script-keeps-blocking.html (934B)
1 <!DOCTYPE html> 2 <title>Synchronous script element still blocks rendering after removing `blocking=render`</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 // Test script must be added before the synchronous script because the 9 // synchronous script is parser-blocking. 10 11 promise_setup(async () => { 12 let script = await nodeInserted(document.head, node => node.id === 'script'); 13 script.blocking = ''; 14 15 // Also inserts some contents for non-compliant UA to render 16 document.body = document.createElement('body'); 17 document.body.appendChild(document.createTextNode('Some text')); 18 }); 19 20 test_render_blocking( 21 () => assert_equals(window.dummy, 1), 22 'Render-blocking script is loaded and evaluated'); 23 </script> 24 25 <script id="script" blocking="render" src="support/dummy-1.js?pipe=trickle(d1)"></script>