Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-video-element/video-loading-lazy-disconnected.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Squarespace" href="https://www.squarespace.com/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
async_test(t => {
const video = document.createElement("video");
video.loading = "lazy";
video.src = "/media/A4.webm";
video.addEventListener("loadstart", t.unreached_func(
"Disconnected video with loading=lazy should not load."
));
t.step_timeout(t.done, 2000);
}, "Video with loading=lazy does not load when not connected to document");
</script>
</body>