tor-browser

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

link-load-event.html (729B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Josh Matthews" href="mailto:josh@joshmatthews.net">
      3 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-link-element">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7 var saw_link_onload = false;
      8 var t = async_test("Check if the stylesheet's load event blocks the document load event");
      9 window.addEventListener('load', t.step_func_done(function() {
     10  assert_true(saw_link_onload);
     11 }));
     12 </script>
     13 <link href="style.css?pipe=trickle(d3)" rel="stylesheet" id="style_test"
     14      onload="t.step(function() { saw_link_onload = true; })"
     15      onerror="t.unreached_func('Sheet should load OK')">
     16 </head>
     17 </html>