tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

script-inserted-script.html (630B)


      1 <!DOCTYPE html>
      2 <title>Script-inserted 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>
      8 const script = document.createElement('script');
      9 script.src = 'support/dummy-1.js?pipe=trickle(d1)';
     10 script.blocking = 'render';
     11 document.head.appendChild(script);
     12 </script>
     13 
     14 <div>Some text</div>
     15 
     16 <script>
     17 test_render_blocking(
     18    script,
     19    () => assert_equals(window.dummy, 1),
     20    'Script-inserted render-blocking script is evaluated');
     21 </script>