Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/html/crashtests/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 922 B image not shown  

Quelle  link-preload-media-change.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/html/crashtests/link-preload-media-change.html


<!DOCTYPE html>
<html>
<head>
<style>
  iframe {
    width: 800px;
  }
</style>
</head>
<body>
<iframe srcdoc="" id="iframe"></iframe>
<script>
const iframe = document.getElementById("iframe");

iframe.onload = () => {
  const doc = iframe.contentDocument;

  // Create link with media query that matches current viewport
  const link = doc.createElement("link");
  link.rel = "preload";
  link.as = "script";
  link.href = "data:text/javascript,void+0";
  link.media = "(min-width: 600px)";
  doc.head.appendChild(link);

  // Resize viewport so media query no longer matches
  iframe.style.width = "400px";

  // Force a layout flush
  iframe.offsetWidth;
  doc.documentElement.offsetWidth;

  // Change media attribute to something that matches new viewport
  // Bug 2014588 started a second preload without canceling the first one,
  // causing an assertion failure.
  link.media = "all";
};
</script>
</body>
</html>

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.