tor-browser

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

iframe-contents-dom-content-loaded.html (535B)


      1 <!doctype HTML>
      2 <head>
      3 <style>
      4 * { margin: 0 }
      5 </style>
      6 <meta name="responsive-embedded-sizing">
      7 </head>
      8 <div id="target" style="width: 100px">
      9  <img src="slow-image.py?name=1x1-navy.png" width="1" height="1">
     10 </div>
     11 <script>
     12 document.addEventListener('DOMContentLoaded', () => {
     13  target.style.height = '200px';
     14  window.parent.postMessage({
     15    type: 'DOMContentLoaded',
     16  }, '*');
     17 });
     18 window.addEventListener('load', () => {
     19  target.style.height = '400px';
     20  window.parent.postMessage({
     21    type: 'load',
     22  }, '*');
     23 });
     24 </script>