tor-browser

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

element-render-blocking-039.html (754B)


      1 <!DOCTYPE html>
      2 <meta name="timeout" content="long">
      3 <head>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="support/utils.js"></script>
      7 <title>link rel=expect: render blocking stops waiting when the document finishes loading</title>
      8 
      9 <link rel=expect href="#invalid" blocking="render">
     10 <script>
     11 const startTime = performance.now();
     12 
     13 async_test((t) => {
     14  requestAnimationFrame(() => {
     15    t.step(() => assert_less_than(performance.now() - startTime, 3000, "requestAnimationFrame should not have been delayed by the link that didn't find its target after load completes"));
     16    t.done();
     17  });
     18 }, "");
     19 </script>
     20 </head>
     21 <body>
     22  <div id="first"></div>
     23  <div id="last"></div>
     24 </body>