Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!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>