Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/serviceworkers/test/download/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  window.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/serviceworkers/test/download/window.html


<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->

<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<script type="text/javascript">

function wait_until_controlled() {
  return new Promise(function(resolve) {
    if (navigator.serviceWorker.controller) {
      resolve();
      return;
    }
    navigator.serviceWorker.addEventListener('controllerchange', function onController() {
      if (navigator.serviceWorker.controller) {
        navigator.serviceWorker.removeEventListener('controllerchange', onController);
        resolve();
      }
    });
  });
}
addEventListener('load', function(event) {
  var registration;
  navigator.serviceWorker.register('worker.js').then(function(swr) {
    registration = swr;

    // While the iframe below is a navigation, we still wait until we are
    // controlled here.  We want an active client to hold the service worker
    // alive since it calls unregister() on itself.
    return wait_until_controlled();

  }).then(function() {
    var frame = document.createElement('iframe');
    document.body.appendChild(frame);
    frame.src = 'fake_download';

    // The service worker is unregistered in the fetch event.  The window and
    // frame are cleaned up from the browser chrome script.
  });
});
</script>
</body>
</html>

Messung V0.5
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.