tor-browser

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

parser-inserted-module-script.html (696B)


      1 <!DOCTYPE html>
      2 <title>Parser-inserted module 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="module-script" type="module" blocking="render"
      8        src="support/dummy-1.mjs?pipe=trickle(d1)">
      9 </script>
     10 
     11 <div id="dummy">some text</div>
     12 
     13 <script>
     14 const moduleScript = document.getElementById('module-script');
     15 test_render_blocking(
     16    moduleScript,
     17    () => assert_equals(document.getElementById('dummy').textContent, '1'),
     18    'Parser-inserted render-blocking module script is evaluated');
     19 </script>